Class AbstractLocalTransactionRequest<T extends AbstractLocalTransactionRequest<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.AbstractLocalTransactionRequest<T>
-
- Type Parameters:
T
- Message type
- All Implemented Interfaces:
Serializable
,Immutable
,MutationBehaviour<Immutable>
- Direct Known Subclasses:
AbortLocalTransactionRequest
,CommitLocalTransactionRequest
public abstract class AbstractLocalTransactionRequest<T extends AbstractLocalTransactionRequest<T>> extends TransactionRequest<T>
Abstract base class forRequest
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opendaylight.controller.cluster.access.commands.TransactionRequest
TransactionRequest.SerialForm<T extends TransactionRequest<T>>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
cloneAsVersion(ABIVersion version)
Create a copy of this message which will serialize to a stream corresponding to the specified method.protected 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, toString, toVersion, writeReplace
-
-
-
-
Method Detail
-
externalizableProxy
protected final TransactionRequest.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 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
protected final T cloneAsVersion(ABIVersion version)
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
-
-