Class ModifyTransactionRequest
- 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<ModifyTransactionRequest>
-
- org.opendaylight.controller.cluster.access.commands.ModifyTransactionRequest
-
- All Implemented Interfaces:
Serializable,SliceableMessage,Immutable,MutationBehaviour<Immutable>
@Beta public final class ModifyTransactionRequest extends TransactionRequest<ModifyTransactionRequest> implements SliceableMessage
A transaction request to apply a particular set of operations on top of the current transaction. This message is used to also finish a transaction by specifying aPersistenceProtocol.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper)Add attributes to the output ofMessage.toString().protected ModifyTransactionRequestcloneAsVersion(ABIVersion version)Create a copy of this message which will serialize to a stream corresponding to the specified method.protected org.opendaylight.controller.cluster.access.commands.ModifyTransactionRequestProxyV1externalizableProxy(ABIVersion version)List<TransactionModification>getModifications()Optional<PersistenceProtocol>getPersistenceProtocol()-
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
getSequence, getTarget, getVersion, toString, toVersion, writeReplace
-
-
-
-
Method Detail
-
getPersistenceProtocol
public Optional<PersistenceProtocol> getPersistenceProtocol()
-
getModifications
public List<TransactionModification> getModifications()
-
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,ModifyTransactionRequest>- Parameters:
toStringHelper- aMoreObjects.ToStringHelperinstance- Returns:
- The
MoreObjects.ToStringHelperpassed in as argument
-
externalizableProxy
protected org.opendaylight.controller.cluster.access.commands.ModifyTransactionRequestProxyV1 externalizableProxy(ABIVersion version)
- Specified by:
externalizableProxyin classTransactionRequest<ModifyTransactionRequest>
-
cloneAsVersion
protected ModifyTransactionRequest cloneAsVersion(ABIVersion version)
Description copied from class:MessageCreate 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:
cloneAsVersionin classMessage<TransactionIdentifier,ModifyTransactionRequest>- Parameters:
version- target ABI version- Returns:
- A message with the specified serialization stream
-
-