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.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncrementTransactionSequenceRequest(TransactionIdentifier identifier, long sequence, akka.actor.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.IncrementTransactionSequenceRequestProxyV1
externalizableProxy(ABIVersion 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(TransactionIdentifier identifier, long sequence, akka.actor.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.IncrementTransactionSequenceRequestProxyV1 externalizableProxy(ABIVersion version)
- Specified by:
externalizableProxy
in classAbstractReadTransactionRequest<IncrementTransactionSequenceRequest>
-
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
-
-