Class AbstractReadTransactionRequest<T extends AbstractReadTransactionRequest<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>
-
- Type Parameters:
T
- Message type
- All Implemented Interfaces:
Serializable
,Immutable
,MutationBehaviour<Immutable>
- Direct Known Subclasses:
AbstractReadPathTransactionRequest
,IncrementTransactionSequenceRequest
@Beta public abstract class AbstractReadTransactionRequest<T extends AbstractReadTransactionRequest<T>> extends TransactionRequest<T>
Abstract base class forTransactionRequest
s 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.
- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelper
addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
Add attributes to the output ofMessage.toString()
.protected abstract org.opendaylight.controller.cluster.access.commands.AbstractReadTransactionRequestProxyV1<T>
externalizableProxy(ABIVersion version)
boolean
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
-
isSnapshotOnly
public final boolean isSnapshotOnly()
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
Description copied from class:Message
Add 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:
addToStringAttributes
in classRequest<TransactionIdentifier,T extends AbstractReadTransactionRequest<T>>
- Parameters:
toStringHelper
- aMoreObjects.ToStringHelper
instance- Returns:
- The
MoreObjects.ToStringHelper
passed in as argument
-
externalizableProxy
protected abstract org.opendaylight.controller.cluster.access.commands.AbstractReadTransactionRequestProxyV1<T> externalizableProxy(ABIVersion version)
- Specified by:
externalizableProxy
in classTransactionRequest<T extends AbstractReadTransactionRequest<T>>
-
-