Class SkipTransactionsRequest
- 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<SkipTransactionsRequest>
-
- org.opendaylight.controller.cluster.access.commands.SkipTransactionsRequest
-
- All Implemented Interfaces:
Serializable
,Immutable
,MutationBehaviour<Immutable>
@Beta public final class SkipTransactionsRequest extends TransactionRequest<SkipTransactionsRequest>
Request to skip a number ofTransactionIdentifier
s within a {code local history}. This request is essentially equivalent toTransactionPurgeRequest
forMessage.getTarget()
, but also carries additional siblingTransactionIdentifier
s ingetOthers()
.This request is sent by the frontend to inform the backend that a set of
TransactionIdentifier
s are explicitly retired and are guaranteed to never be used by the frontend.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SkipTransactionsRequest(TransactionIdentifier target, long sequence, ActorRef replyTo, Collection<UnsignedLong> others)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelper
addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
Add attributes to the output ofMessage.toString()
.protected SkipTransactionsRequest
cloneAsVersion(ABIVersion version)
Create a copy of this message which will serialize to a stream corresponding to the specified method.protected org.opendaylight.controller.cluster.access.commands.SkipTransactionsRequestV1
externalizableProxy(ABIVersion version)
List<UnsignedLong>
getOthers()
Return thisMessage.getTarget()
s siblingTransactionIdentifier
s.-
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
-
SkipTransactionsRequest
public SkipTransactionsRequest(TransactionIdentifier target, long sequence, ActorRef replyTo, Collection<UnsignedLong> others)
-
-
Method Detail
-
getOthers
public List<UnsignedLong> getOthers()
Return thisMessage.getTarget()
s siblingTransactionIdentifier
s.- Returns:
- Siblings values of
TransactionIdentifier.getTransactionId()
-
externalizableProxy
protected org.opendaylight.controller.cluster.access.commands.SkipTransactionsRequestV1 externalizableProxy(ABIVersion version)
- Specified by:
externalizableProxy
in classTransactionRequest<SkipTransactionsRequest>
-
cloneAsVersion
protected SkipTransactionsRequest cloneAsVersion(ABIVersion version)
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,SkipTransactionsRequest>
- Parameters:
version
- target ABI version- Returns:
- A message with the specified serialization stream
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
Description copied from class:Message
Add attributes to the output ofMessage.toString()
. Subclasses wanting to contribute additional information should override this method. Any null attributes will be omitted from the output.- Overrides:
addToStringAttributes
in classRequest<TransactionIdentifier,SkipTransactionsRequest>
- Parameters:
toStringHelper
- aMoreObjects.ToStringHelper
instance- Returns:
- The
MoreObjects.ToStringHelper
passed in as argument
-
-