2 * Copyright (c) 2014 Cisco 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
9 package org.opendaylight.controller.cluster.raft.messages;
12 * Reply for the AppendEntriesRpc message
14 public class AppendEntriesReply {
15 // currentTerm, for leader to update itself
16 private final long term;
18 // true if follower contained entry matching
19 // prevLogIndex and prevLogTerm
20 private final boolean success;
22 public AppendEntriesReply(long term, boolean success) {
24 this.success = success;
27 public long getTerm() {
31 public boolean isSuccess() {