public static interface OperationContext.ResultHandler
OperationStepHandler
indicating that the result of the overall operation is
known and the handler can take any necessary actions to deal with that result.Modifier and Type | Field and Description |
---|---|
static OperationContext.ResultHandler |
NOOP_RESULT_HANDLER
A
OperationContext.ResultHandler that does nothing in the callback. |
Modifier and Type | Method and Description |
---|---|
void |
handleResult(OperationContext.ResultAction resultAction,
OperationContext context,
org.jboss.dmr.ModelNode operation)
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. |
static final OperationContext.ResultHandler NOOP_RESULT_HANDLER
OperationContext.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 the OperationContext
will handle that automatically.)void handleResult(OperationContext.ResultAction resultAction, OperationContext context, org.jboss.dmr.ModelNode operation)
OperationStepHandler
indicating that the result of the overall operation is
known and the handler can take any necessary actions to deal with that result.resultAction
- the overall result of the operationcontext
- the operation execution context; will be the same as what was passed to the
OperationStepHandler.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 the
OperationStepHandler.execute(OperationContext, ModelNode)
method invocation
that registered this rollback handler.Copyright © 2023 JBoss by Red Hat. All rights reserved.