public static interface OperationContext.RollbackHandler
OperationStepHandler
indicating that the overall operation is being
rolled back and the handler should revert any change it has made.Modifier and Type | Field and Description |
---|---|
static OperationContext.RollbackHandler |
NOOP_ROLLBACK_HANDLER
A
OperationContext.RollbackHandler that does nothing in the callback. |
static OperationContext.RollbackHandler |
REVERT_RELOAD_REQUIRED_ROLLBACK_HANDLER
|
Modifier and Type | Method and Description |
---|---|
void |
handleRollback(OperationContext context,
org.jboss.dmr.ModelNode operation)
Callback to an
OperationStepHandler indicating that the overall operation is being
rolled back and the handler should revert any change it has made. |
static final OperationContext.RollbackHandler NOOP_ROLLBACK_HANDLER
OperationContext.RollbackHandler
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.)static final OperationContext.RollbackHandler REVERT_RELOAD_REQUIRED_ROLLBACK_HANDLER
OperationContext.RollbackHandler
that calls OperationContext.revertReloadRequired()
. Intended for use by
operation step handlers call OperationContext.reloadRequired()
and perform no other actions
that need to be rolled back.void handleRollback(OperationContext context, org.jboss.dmr.ModelNode operation)
OperationStepHandler
indicating that the overall operation is being
rolled back and the handler should revert any change it has made. A handler executing in
OperationContext.Stage.MODEL
need not revert any changes it has made to the configuration model; this
will be done automatically.context
- 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 © 2014 JBoss by Red Hat. All rights reserved.