Package org.jboss.as.controller
Interface ModelController.OperationTransactionControl
- All Known Subinterfaces:
ProxyController.ProxyOperationControl
- Enclosing interface:
- ModelController
public static interface ModelController.OperationTransactionControl
A callback interface for the operation's completion status. Implemented in order to control whether a complete
operation is committed or rolled back after it is prepared.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModelController.OperationTransactionControlAn operation transaction control implementation which always commits the operation. -
Method Summary
Modifier and TypeMethodDescriptionvoidoperationPrepared(ModelController.OperationTransaction transaction, org.jboss.dmr.ModelNode result) Notify that an operation is complete and may be committed or rolled back.default voidoperationPrepared(ModelController.OperationTransaction transaction, org.jboss.dmr.ModelNode result, OperationContext context) Notify that an operation is complete and may be committed or rolled back.
-
Field Details
-
COMMIT
An operation transaction control implementation which always commits the operation.
-
-
Method Details
-
operationPrepared
default void operationPrepared(ModelController.OperationTransaction transaction, org.jboss.dmr.ModelNode result, OperationContext context) Notify that an operation is complete and may be committed or rolled back.It is the responsibility of the user of this
OperationTransactionControlto ensure thatModelController.OperationTransaction.commit()orModelController.OperationTransaction.rollback()is eventually called on the providedtransaction.- Parameters:
transaction- the transaction to control the fate of the operation. Cannot benullresult- the result. Cannot benullcontext- theOperationContextfor the operation that is prepared
-
operationPrepared
void operationPrepared(ModelController.OperationTransaction transaction, org.jboss.dmr.ModelNode result) Notify that an operation is complete and may be committed or rolled back.It is the responsibility of the user of this
OperationTransactionControlto ensure thatModelController.OperationTransaction.commit()orModelController.OperationTransaction.rollback()is eventually called on the providedtransaction.- Parameters:
transaction- the transaction to control the fate of the operation. Cannot benullresult- the result. Cannot benull
-