Install snapshot and Reply
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / base / messages / ApplySnapshot.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.cluster.raft.base.messages;
10
11 import org.opendaylight.controller.cluster.raft.Snapshot;
12
13 import java.io.Serializable;
14
15 /**
16  * Internal message, issued by follower to its actor
17  */
18 public class ApplySnapshot implements Serializable {
19     private final Snapshot snapshot;
20
21     public ApplySnapshot(Snapshot snapshot) {
22         this.snapshot = snapshot;
23     }
24
25     public Snapshot getSnapshot() {
26         return snapshot;
27     }
28 }