Class AbstractReadPathTransactionRequest<T extends AbstractReadPathTransactionRequest<T>>

Type Parameters:
T - Message type
All Implemented Interfaces:
Serializable, org.opendaylight.yangtools.concepts.Immutable
Direct Known Subclasses:
ExistsTransactionRequest, ReadTransactionRequest

public abstract class AbstractReadPathTransactionRequest<T extends AbstractReadPathTransactionRequest<T>> extends AbstractReadTransactionRequest<T>
Abstract base class for TransactionRequests accessing data as visible in the isolated context of a particular transaction. The path of the data being accessed is returned via getPath().

This class is visible outside of this package for the purpose of allowing common instanceof checks and simplified codepaths.

See Also:
  • Method Details

    • getPath

      public final @NonNull org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getPath()
    • 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 AbstractReadTransactionRequest<T extends AbstractReadPathTransactionRequest<T>>
      Parameters:
      toStringHelper - a MoreObjects.ToStringHelper instance
      Returns:
      The MoreObjects.ToStringHelper passed in as argument
    • externalizableProxy

      protected abstract org.opendaylight.controller.cluster.access.commands.AbstractReadPathTransactionRequest.SerialForm<T> 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 AbstractReadTransactionRequest<T extends AbstractReadPathTransactionRequest<T>>
      Parameters:
      version - Requested ABI version
      Returns:
      Proxy for this object