public static interface OperationContext.RollbackHandler
Modifier and Type | Field and Description |
---|---|
static OperationContext.RollbackHandler |
NOOP_ROLLBACK_HANDLER
A
OperationContext.RollbackHandler that does nothing in the callback. |
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.)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 © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.