Class SkipTransactionsRequest
java.lang.Object
org.opendaylight.controller.cluster.access.concepts.Message<TransactionIdentifier,SkipTransactionsRequest>
org.opendaylight.controller.cluster.access.concepts.Request<TransactionIdentifier,SkipTransactionsRequest>
org.opendaylight.controller.cluster.access.commands.TransactionRequest<SkipTransactionsRequest>
org.opendaylight.controller.cluster.access.commands.SkipTransactionsRequest
- All Implemented Interfaces:
Serializable,Immutable
Request to skip a number of
TransactionIdentifiers within a {code local history}. This request is essentially
equivalent to TransactionPurgeRequest for Message.getTarget(), but also carries additional sibling
TransactionIdentifiers in getOthers().
This request is sent by the frontend to inform the backend that a set of TransactionIdentifiers are
explicitly retired and are guaranteed to never be used by the frontend.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSkipTransactionsRequest(TransactionIdentifier target, long sequence, ActorRef replyTo, Collection<UnsignedLong> others) -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper) Add attributes to the output ofMessage.toString().protected SkipTransactionsRequestcloneAsVersion(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.SkipTransactionsRequest.SerialFormexternalizableProxy(ABIVersion version) Instantiate a serialization proxy for this object for the target ABI version.Return thisMessage.getTarget()s siblingTransactionIdentifiers.Methods 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
-
SkipTransactionsRequest
public SkipTransactionsRequest(TransactionIdentifier target, long sequence, ActorRef replyTo, Collection<UnsignedLong> others)
-
-
Method Details
-
getOthers
Return thisMessage.getTarget()s siblingTransactionIdentifiers.- Returns:
- Siblings values of
TransactionIdentifier.getTransactionId()
-
externalizableProxy
protected org.opendaylight.controller.cluster.access.commands.SkipTransactionsRequest.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 classTransactionRequest<SkipTransactionsRequest>- 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,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:MessageAdd 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:
addToStringAttributesin classRequest<TransactionIdentifier,SkipTransactionsRequest> - Parameters:
toStringHelper- aMoreObjects.ToStringHelperinstance- Returns:
- The
MoreObjects.ToStringHelperpassed in as argument
-