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
Fields Modifier and Type Field Description static ModelController.OperationTransactionControl
COMMIT
An operation transaction control implementation which always commits the operation.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
operationPrepared(ModelController.OperationTransaction transaction, org.jboss.dmr.ModelNode result)
Notify that an operation is complete and may be committed or rolled back.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.
-
-
-
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
OperationTransactionControl
to 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 benull
result
- the result. Cannot benull
context
- theOperationContext
for 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
OperationTransactionControl
to 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 benull
result
- the result. Cannot benull
-
-