2 * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.datastore.messages;
10 import java.io.IOException;
11 import java.io.ObjectInput;
12 import java.io.ObjectOutput;
15 * The reply for the BatchedModifications message.
17 * @author Thomas Pantelis
19 public class BatchedModificationsReply extends VersionedExternalizableMessage {
20 private static final long serialVersionUID = 1L;
22 private int numBatched;
24 public BatchedModificationsReply() {
27 public BatchedModificationsReply(int numBatched) {
28 this.numBatched = numBatched;
32 public int getNumBatched() {
37 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
38 super.readExternal(in);
39 numBatched = in.readInt();
43 public void writeExternal(ObjectOutput out) throws IOException {
44 super.writeExternal(out);
45 out.writeInt(numBatched);
49 public Object toSerializable() {