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.
Handler for a callback to an
OperationStepHandler 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
FieldsModifier and TypeFieldDescriptionstatic final OperationContext.ResultHandlerAOperationContext.ResultHandlerthat does nothing in the callback. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleResult(OperationContext.ResultAction resultAction, OperationContext context, org.jboss.dmr.ModelNode operation) Callback to anOperationStepHandlerindicating that the result of the overall operation is known and the handler can take any necessary actions to deal with that result.
-
Field Details
-
NOOP_RESULT_HANDLER
AOperationContext.ResultHandlerthat 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 theOperationContextwill handle that automatically.)
-
-
Method Details
-
handleResult
void handleResult(OperationContext.ResultAction resultAction, OperationContext context, org.jboss.dmr.ModelNode operation) Callback to anOperationStepHandlerindicating 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.
-