Class IncrementTransactionSequenceRequest
java.lang.Object
org.opendaylight.controller.cluster.access.concepts.Message<TransactionIdentifier,IncrementTransactionSequenceRequest>
org.opendaylight.controller.cluster.access.concepts.Request<TransactionIdentifier,IncrementTransactionSequenceRequest>
org.opendaylight.controller.cluster.access.commands.TransactionRequest<IncrementTransactionSequenceRequest>
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.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIncrementTransactionSequenceRequest(IncrementTransactionSequenceRequest request, ABIVersion version) IncrementTransactionSequenceRequest(TransactionIdentifier identifier, long sequence, ActorRef replyTo, boolean snapshotOnly, long increment) -
Method Summary
Modifier and TypeMethodDescriptionprotected IncrementTransactionSequenceRequestcloneAsVersion(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.SerialFormexternalizableProxy(ABIVersion version) Instantiate a serialization proxy for this object for the target ABI version.longReturn the sequence increment beyond this request's sequence.Methods inherited from class org.opendaylight.controller.cluster.access.commands.AbstractReadTransactionRequest
addToStringAttributes, isSnapshotOnlyMethods inherited from class org.opendaylight.controller.cluster.access.commands.TransactionRequest
toRequestFailureMethods inherited from class org.opendaylight.controller.cluster.access.concepts.Request
getReplyToMethods inherited from class org.opendaylight.controller.cluster.access.concepts.Message
getSequence, getTarget, getVersion, throwNSE, toString, toVersion, writeReplace
-
Constructor Details
-
IncrementTransactionSequenceRequest
public IncrementTransactionSequenceRequest(IncrementTransactionSequenceRequest request, ABIVersion version) -
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.IncrementTransactionSequenceRequest.SerialForm externalizableProxy(ABIVersion version) Description copied from class:MessageInstantiate a serialization proxy for this object for the target ABI version. Implementations should return different objects for incompatibleABIVersions. This method should never fail, as any compatibility checks should have been done byMessage.cloneAsVersion(ABIVersion).- Specified by:
externalizableProxyin classAbstractReadTransactionRequest<IncrementTransactionSequenceRequest>- Parameters:
version- Requested ABI version- Returns:
- Proxy for this object
-
cloneAsVersion
Description copied from class:MessageCreate 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:
cloneAsVersionin classMessage<TransactionIdentifier,IncrementTransactionSequenceRequest> - Parameters:
targetVersion- target ABI version- Returns:
- A message with the specified serialization stream
-