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
8 package org.opendaylight.controller.cluster.raft.base.messages;
10 import java.io.Serializable;
13 * ApplyLogEntries serves as a message which is stored in the akka's persistent
15 * During recovery if this message is found, then all in-mem journal entries from
16 * context.lastApplied to ApplyLogEntries.toIndex are applied to the state
18 * This class is also used as a internal message sent from Behaviour to
19 * RaftActor to persist the ApplyLogEntries
22 public class ApplyLogEntries implements Serializable {
23 private static final long serialVersionUID = 1L;
24 private final int toIndex;
26 public ApplyLogEntries(int toIndex) {
27 this.toIndex = toIndex;
30 public int getToIndex() {