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
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 a
ReadTransactionRequest
) is satisfied by the backend
before the need to replay the transaction to a different remote backend.- Author:
- Robert Varga
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIncrementTransactionSequenceRequest
(TransactionIdentifier identifier, long sequence, ActorRef replyTo, boolean snapshotOnly, long increment) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
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 Details
-
IncrementTransactionSequenceRequest
public IncrementTransactionSequenceRequest(TransactionIdentifier identifier, long sequence, ActorRef replyTo, boolean snapshotOnly, long increment)
-
-
Method Details
-
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
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
-