All Implemented Interfaces:
Serializable, org.opendaylight.yangtools.concepts.Immutable

public final class SkipTransactionsRequest extends TransactionRequest<SkipTransactionsRequest>
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 Details

    • SkipTransactionsRequest

      public SkipTransactionsRequest(TransactionIdentifier target, long sequence, akka.actor.ActorRef replyTo, Collection<com.google.common.primitives.UnsignedLong> others)
  • Method Details

    • getOthers

      public List<com.google.common.primitives.UnsignedLong> getOthers()
      Returns:
      Siblings values of TransactionIdentifier.getTransactionId()
    • externalizableProxy

      protected org.opendaylight.controller.cluster.access.commands.SkipTransactionsRequest.SerialForm externalizableProxy(ABIVersion version)
      Description copied from class: Message
      Instantiate a serialization proxy for this object for the target ABI version. Implementations should return different objects for incompatible ABIVersions. This method should never fail, as any compatibility checks should have been done by Message.cloneAsVersion(ABIVersion).
      Specified by:
      externalizableProxy in class TransactionRequest<SkipTransactionsRequest>
      Parameters:
      version - Requested ABI version
      Returns:
      Proxy for this object
    • 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 of Message(Message, ABIVersion).
      Specified by:
      cloneAsVersion in class Message<TransactionIdentifier,SkipTransactionsRequest>
      Parameters:
      version - target ABI version
      Returns:
      A message with the specified serialization stream
    • addToStringAttributes

      protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
      Description copied from class: Message
      Add attributes to the output of Message.toString(). Subclasses wanting to contribute additional information should override this method. Any null attributes will be omitted from the output.
      Overrides:
      addToStringAttributes in class Request<TransactionIdentifier,SkipTransactionsRequest>
      Parameters:
      toStringHelper - a MoreObjects.ToStringHelper instance
      Returns:
      The MoreObjects.ToStringHelper passed in as argument