Class AbstractReadPathTransactionRequest<T extends AbstractReadPathTransactionRequest<T>>
- 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<T>
-
- org.opendaylight.controller.cluster.access.commands.AbstractReadTransactionRequest<T>
-
- org.opendaylight.controller.cluster.access.commands.AbstractReadPathTransactionRequest<T>
-
- Type Parameters:
T- Message type
- All Implemented Interfaces:
Serializable,Immutable,MutationBehaviour<Immutable>
- Direct Known Subclasses:
ExistsTransactionRequest,ReadTransactionRequest
@Beta public abstract class AbstractReadPathTransactionRequest<T extends AbstractReadPathTransactionRequest<T>> extends AbstractReadTransactionRequest<T>
Abstract base class forTransactionRequests accessing data as visible in the isolated context of a particular transaction. The path of the data being accessed is returned viagetPath().This class is visible outside of this package for the purpose of allowing common instanceof checks and simplified codepaths.
- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper)Add attributes to the output ofMessage.toString().protected abstract org.opendaylight.controller.cluster.access.commands.AbstractReadPathTransactionRequest.SerialForm<T>externalizableProxy(ABIVersion version)Instantiate a serialization proxy for this object for the target ABI version.@NonNull YangInstanceIdentifiergetPath()-
Methods inherited from class org.opendaylight.controller.cluster.access.commands.AbstractReadTransactionRequest
isSnapshotOnly
-
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
cloneAsVersion, getSequence, getTarget, getVersion, toString, toVersion, writeReplace
-
-
-
-
Method Detail
-
getPath
public final @NonNull YangInstanceIdentifier getPath()
-
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 classAbstractReadTransactionRequest<T extends AbstractReadPathTransactionRequest<T>>- Parameters:
toStringHelper- aMoreObjects.ToStringHelperinstance- Returns:
- The
MoreObjects.ToStringHelperpassed in as argument
-
externalizableProxy
protected abstract org.opendaylight.controller.cluster.access.commands.AbstractReadPathTransactionRequest.SerialForm<T> 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<T extends AbstractReadPathTransactionRequest<T>>- Parameters:
version- Requested ABI version- Returns:
- Proxy for this object
-
-