Class ClientRequestTrackerImpl
- java.lang.Object
-
- org.opendaylight.controller.cluster.raft.ClientRequestTrackerImpl
-
- All Implemented Interfaces:
ClientRequestTracker
public class ClientRequestTrackerImpl extends Object implements ClientRequestTracker
-
-
Constructor Summary
Constructors Constructor Description ClientRequestTrackerImpl(akka.actor.ActorRef clientActor, Identifier identifier, long logIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description akka.actor.ActorRef
getClientActor()
Returns the client actor that should be sent a response when consensus is achieved.Identifier
getIdentifier()
Returns the identifier of the object that is to be replicated.long
getIndex()
Returns the index of the log entry that is to be replicated.
-
-
-
Constructor Detail
-
ClientRequestTrackerImpl
public ClientRequestTrackerImpl(akka.actor.ActorRef clientActor, Identifier identifier, long logIndex)
-
-
Method Detail
-
getClientActor
public akka.actor.ActorRef getClientActor()
Description copied from interface:ClientRequestTracker
Returns the client actor that should be sent a response when consensus is achieved.- Specified by:
getClientActor
in interfaceClientRequestTracker
- Returns:
- the client actor
-
getIndex
public long getIndex()
Description copied from interface:ClientRequestTracker
Returns the index of the log entry that is to be replicated.- Specified by:
getIndex
in interfaceClientRequestTracker
- Returns:
- the index
-
getIdentifier
public Identifier getIdentifier()
Description copied from interface:ClientRequestTracker
Returns the identifier of the object that is to be replicated. For example a transaction identifier in the case of a transaction.- Specified by:
getIdentifier
in interfaceClientRequestTracker
- Returns:
- the identifier
-
-