Package org.jboss.as.controller
Interface OperationContext.ResultHandler
-
- Enclosing interface:
- OperationContext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface OperationContext.ResultHandler
Handler for a callback to anOperationStepHandler
indicating that the result of the overall operation is known and the handler can take any necessary actions to deal with that result.
-
-
Field Summary
Fields Modifier and Type Field Description static OperationContext.ResultHandler
NOOP_RESULT_HANDLER
AOperationContext.ResultHandler
that does nothing in the callback.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleResult(OperationContext.ResultAction resultAction, OperationContext context, org.jboss.dmr.ModelNode operation)
Callback to anOperationStepHandler
indicating that the result of the overall operation is known and the handler can take any necessary actions to deal with that result.
-
-
-
Field Detail
-
NOOP_RESULT_HANDLER
static final OperationContext.ResultHandler NOOP_RESULT_HANDLER
AOperationContext.ResultHandler
that does nothing in the callback. Intended for use by operation step handlers that do not need to do any clean up work -- e.g. those that only perform reads or those that only perform persistent configuration changes. (Persistent configuration changes need not be explicitly rolled back as theOperationContext
will handle that automatically.)
-
-
Method Detail
-
handleResult
void handleResult(OperationContext.ResultAction resultAction, OperationContext context, org.jboss.dmr.ModelNode operation)
Callback to anOperationStepHandler
indicating that the result of the overall operation is known and the handler can take any necessary actions to deal with that result.- Parameters:
resultAction
- the overall result of the operationcontext
- the operation execution context; will be the same as what was passed to theOperationStepHandler.execute(OperationContext, ModelNode)
method invocation that registered this rollback handler.operation
- the operation being rolled back; will be the same as what was passed to theOperationStepHandler.execute(OperationContext, ModelNode)
method invocation that registered this rollback handler.
-
-