Package org.jboss.as.controller
Interface ModelController.OperationTransactionControl
-
- All Known Subinterfaces:
ProxyController.ProxyOperationControl
- Enclosing interface:
- ModelController
public static interface ModelController.OperationTransactionControlA 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
Fields Modifier and Type Field Description static ModelController.OperationTransactionControlCOMMITAn operation transaction control implementation which always commits the operation.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidoperationPrepared(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 Detail
-
COMMIT
static final ModelController.OperationTransactionControl COMMIT
An operation transaction control implementation which always commits the operation.
-
-
Method Detail
-
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
-
-