Class AbstractReadTransactionRequest<T extends AbstractReadTransactionRequest<T>>
java.lang.Object
org.opendaylight.controller.cluster.access.concepts.Message<TransactionIdentifier,T>
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>
- Type Parameters:
T- Message type
- All Implemented Interfaces:
Serializable,Immutable
- Direct Known Subclasses:
AbstractReadPathTransactionRequest,IncrementTransactionSequenceRequest
public abstract class AbstractReadTransactionRequest<T extends AbstractReadTransactionRequest<T>>
extends TransactionRequest<T>
Abstract base class for
TransactionRequests accessing transaction state without modifying it.
This class is visible outside of this package for the purpose of allowing common instanceof checks and simplified codepaths.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper) Add attributes to the output ofMessage.toString().protected abstract org.opendaylight.controller.cluster.access.commands.AbstractReadTransactionRequest.SerialForm<T> externalizableProxy(ABIVersion version) Instantiate a serialization proxy for this object for the target ABI version.final booleanMethods 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
cloneAsVersion, getSequence, getTarget, getVersion, throwNSE, toString, toVersion, writeReplace
-
Method Details
-
isSnapshotOnly
public final boolean isSnapshotOnly() -
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,T extends AbstractReadTransactionRequest<T>> - Parameters:
toStringHelper- aMoreObjects.ToStringHelperinstance- Returns:
- The
MoreObjects.ToStringHelperpassed in as argument
-
externalizableProxy
protected abstract org.opendaylight.controller.cluster.access.commands.AbstractReadTransactionRequest.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 classTransactionRequest<T extends AbstractReadTransactionRequest<T>>- Parameters:
version- Requested ABI version- Returns:
- Proxy for this object
-