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;
31 public int getNumBatched() {
36 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
37 super.readExternal(in);
38 numBatched = in.readInt();
42 public void writeExternal(ObjectOutput out) throws IOException {
43 super.writeExternal(out);
44 out.writeInt(numBatched);
48 public String toString() {
49 StringBuilder builder = new StringBuilder();
50 builder.append("BatchedModificationsReply [numBatched=").append(numBatched).append("]");
51 return builder.toString();