Merge "Fixed for bug 1168 : Issue while update subnet"
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / ClientRequestTrackerImpl.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;
10
11 import akka.actor.ActorRef;
12
13 public class ClientRequestTrackerImpl implements ClientRequestTracker {
14
15     private final ActorRef clientActor;
16     private final String identifier;
17     private final long logIndex;
18
19     public ClientRequestTrackerImpl(ActorRef clientActor, String identifier,
20         long logIndex) {
21
22         this.clientActor = clientActor;
23
24         this.identifier = identifier;
25
26         this.logIndex = logIndex;
27     }
28
29     @Override public ActorRef getClientActor() {
30         return clientActor;
31     }
32
33     @Override public long getIndex() {
34         return logIndex;
35     }
36
37     public String getIdentifier() {
38         return identifier;
39     }
40 }