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
21 * @deprecated Deprecated in favor of ApplyJournalEntries whose type for toIndex is long instead of int.
22 * This class was kept for backwards compatibility with Helium.
25 public class ApplyLogEntries implements Serializable {
26 private final int toIndex;
28 public ApplyLogEntries(int toIndex) {
29 this.toIndex = toIndex;
32 public int getToIndex() {