Class IncrementTransactionSequenceRequest
- java.lang.Object
-
- org.opendaylight.controller.cluster.access.concepts.Message<T,C>
-
- org.opendaylight.controller.cluster.access.concepts.Request<TransactionIdentifier,T>
-
- org.opendaylight.controller.cluster.access.commands.TransactionRequest<T>
-
- org.opendaylight.controller.cluster.access.commands.AbstractReadTransactionRequest<IncrementTransactionSequenceRequest>
-
- org.opendaylight.controller.cluster.access.commands.IncrementTransactionSequenceRequest
-
- All Implemented Interfaces:
Serializable
,Immutable
,MutationBehaviour<Immutable>
public final class IncrementTransactionSequenceRequest extends AbstractReadTransactionRequest<IncrementTransactionSequenceRequest>
A blank transaction request. This is used to provide backfill requests in converted retransmit scenarios, such as when a initial request to a transaction (such as aReadTransactionRequest
) is satisfied by the backend before the need to replay the transaction to a different remote backend.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncrementTransactionSequenceRequest(IncrementTransactionSequenceRequest request, ABIVersion version)
IncrementTransactionSequenceRequest(TransactionIdentifier identifier, long sequence, ActorRef replyTo, boolean snapshotOnly, long increment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IncrementTransactionSequenceRequest
cloneAsVersion(ABIVersion targetVersion)
Create a copy of this message which will serialize to a stream corresponding to the specified method.protected org.opendaylight.controller.cluster.access.commands.IncrementTransactionSequenceRequest.SerialForm
externalizableProxy(ABIVersion version)
Instantiate a serialization proxy for this object for the target ABI version.long
getIncrement()
Return the sequence increment beyond this request's sequence.-
Methods inherited from class org.opendaylight.controller.cluster.access.commands.AbstractReadTransactionRequest
addToStringAttributes, isSnapshotOnly
-
Methods inherited from class org.opendaylight.controller.cluster.access.commands.TransactionRequest
toRequestFailure
-
Methods inherited from class org.opendaylight.controller.cluster.access.concepts.Request
getReplyTo
-
Methods inherited from class org.opendaylight.controller.cluster.access.concepts.Message
getSequence, getTarget, getVersion, toString, toVersion, writeReplace
-
-
-
-
Constructor Detail
-
IncrementTransactionSequenceRequest
public IncrementTransactionSequenceRequest(IncrementTransactionSequenceRequest request, ABIVersion version)
-
IncrementTransactionSequenceRequest
public IncrementTransactionSequenceRequest(TransactionIdentifier identifier, long sequence, ActorRef replyTo, boolean snapshotOnly, long increment)
-
-
Method Detail
-
getIncrement
public long getIncrement()
Return the sequence increment beyond this request's sequence.- Returns:
- Sequence increment, guaranteed to be non-negative.
-
externalizableProxy
protected org.opendaylight.controller.cluster.access.commands.IncrementTransactionSequenceRequest.SerialForm externalizableProxy(ABIVersion version)
Description copied from class:Message
Instantiate a serialization proxy for this object for the target ABI version. Implementations should return different objects for incompatibleABIVersion
s. This method should never fail, as any compatibility checks should have been done byMessage.cloneAsVersion(ABIVersion)
.- Specified by:
externalizableProxy
in classAbstractReadTransactionRequest<IncrementTransactionSequenceRequest>
- Parameters:
version
- Requested ABI version- Returns:
- Proxy for this object
-
cloneAsVersion
protected IncrementTransactionSequenceRequest cloneAsVersion(ABIVersion targetVersion)
Description copied from class:Message
Create a copy of this message which will serialize to a stream corresponding to the specified method. This method should be implemented by the concrete final message class and should invoke the equivalent ofMessage(Message, ABIVersion)
.- Specified by:
cloneAsVersion
in classMessage<TransactionIdentifier,IncrementTransactionSequenceRequest>
- Parameters:
targetVersion
- target ABI version- Returns:
- A message with the specified serialization stream
-
-