Class AbstractLocalTransactionRequest<T extends AbstractLocalTransactionRequest<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.AbstractLocalTransactionRequest<T>
- Type Parameters:
T
- Message type
- All Implemented Interfaces:
Serializable
,Immutable
- Direct Known Subclasses:
AbortLocalTransactionRequest
,CommitLocalTransactionRequest
public abstract class AbstractLocalTransactionRequest<T extends AbstractLocalTransactionRequest<T>>
extends TransactionRequest<T>
Abstract base class for
Request
s involving specific transactions local to a member node. These transactions
take advantage of isolation provided by the DataTree, performing transaction modifications on the frontend.- Author:
- Robert Varga
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opendaylight.controller.cluster.access.commands.TransactionRequest
TransactionRequest.SerialForm<T extends TransactionRequest<T>>
-
Method Summary
Modifier and TypeMethodDescriptionprotected final T
cloneAsVersion
(ABIVersion version) Create a copy of this message which will serialize to a stream corresponding to the specified method.protected final TransactionRequest.SerialForm
<T> externalizableProxy
(ABIVersion version) Instantiate a serialization proxy for this object for the target ABI version.Methods inherited from class org.opendaylight.controller.cluster.access.commands.TransactionRequest
toRequestFailure
Methods inherited from class org.opendaylight.controller.cluster.access.concepts.Request
addToStringAttributes, getReplyTo
Methods inherited from class org.opendaylight.controller.cluster.access.concepts.Message
getSequence, getTarget, getVersion, throwNSE, toString, toVersion, writeReplace
-
Method Details
-
externalizableProxy
Description copied from class:Message
Instantiate a serialization proxy for this object for the target ABI version. Implementations should return different objects for incompatibleABIVersion
s. This method should never fail, as any compatibility checks should have been done byMessage.cloneAsVersion(ABIVersion)
.- Specified by:
externalizableProxy
in classTransactionRequest<T extends AbstractLocalTransactionRequest<T>>
- Parameters:
version
- Requested ABI version- Returns:
- Proxy for this object
-
cloneAsVersion
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 ofMessage(Message, ABIVersion)
.- Specified by:
cloneAsVersion
in classMessage<TransactionIdentifier,
T extends AbstractLocalTransactionRequest<T>> - Parameters:
version
- target ABI version- Returns:
- A message with the specified serialization stream
-