Class CommitLocalTransactionRequest
java.lang.Object
org.opendaylight.controller.cluster.access.concepts.Message<TransactionIdentifier,CommitLocalTransactionRequest>
org.opendaylight.controller.cluster.access.concepts.Request<TransactionIdentifier,CommitLocalTransactionRequest>
org.opendaylight.controller.cluster.access.commands.TransactionRequest<CommitLocalTransactionRequest>
org.opendaylight.controller.cluster.access.commands.AbstractLocalTransactionRequest<CommitLocalTransactionRequest>
org.opendaylight.controller.cluster.access.commands.CommitLocalTransactionRequest
- All Implemented Interfaces:
Serializable,Immutable
public final class CommitLocalTransactionRequest
extends AbstractLocalTransactionRequest<CommitLocalTransactionRequest>
Request to commit a local transaction. Since local transactions do not introduce state on the backend until they
are ready, this message carries a complete set of modifications.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opendaylight.controller.cluster.access.commands.TransactionRequest
TransactionRequest.SerialForm<T extends TransactionRequest<T>> -
Constructor Summary
ConstructorsConstructorDescriptionCommitLocalTransactionRequest(TransactionIdentifier identifier, long sequence, ActorRef replyTo, DataTreeModification mod, @Nullable Exception delayedFailure, boolean coordinated) -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper) Add attributes to the output ofMessage.toString().@Nullable ExceptionReturn the delayed error detected on the frontend.Deprecated, for removal: This API element is subject to removal in a future version.@NonNull DataTreeModificationbooleanIndicate if this is a coordinated, multi-backend request.Methods inherited from class org.opendaylight.controller.cluster.access.commands.AbstractLocalTransactionRequest
cloneAsVersion, externalizableProxyMethods 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
getSequence, getTarget, getVersion, throwNSE, toString, toVersion, writeReplace
-
Constructor Details
-
CommitLocalTransactionRequest
@NonNullByDefault public CommitLocalTransactionRequest(TransactionIdentifier identifier, long sequence, ActorRef replyTo, DataTreeModification mod, @Nullable Exception delayedFailure, boolean coordinated)
-
-
Method Details
-
delayedFailure
Return the delayed error detected on the frontend. If this error is present, it will be reported as the result of the first step of the commit process.- Returns:
- Delayed failure, of present
-
getDelayedFailure
Deprecated, for removal: This API element is subject to removal in a future version.UsedelayedFailure()instead.Return the delayed error detected on the frontend. If this error is present, it will be reported as the result of the first step of the commit process.- Returns:
- Delayed failure, if present.
-
getModification
-
isCoordinated
public boolean isCoordinated()Indicate if this is a coordinated, multi-backend request. If this method returns true, the backend must act as a cohort participating in the three-phase commit (3PC) protocol to commit this transaction. If this method returns false, the backend should proceed to commit the transaction and respond once the commit completes or fails to complete.- Returns:
- Indication of coordinated commit.
-
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,CommitLocalTransactionRequest> - Parameters:
toStringHelper- aMoreObjects.ToStringHelperinstance- Returns:
- The
MoreObjects.ToStringHelperpassed in as argument
-
delayedFailure()instead.