public class BatchActionHandler extends AbstractActionHandler<BatchAction,BatchResult>
BatchAction
requests, which are a set of multiple actions that need to all be executed
successfully in sequence for the whole action to succeed.Constructor and Description |
---|
BatchActionHandler() |
Modifier and Type | Method and Description |
---|---|
BatchResult |
execute(BatchAction action,
ExecutionContext context)
Handles the specified action.
|
void |
undo(BatchAction action,
BatchResult result,
ExecutionContext context)
Undoes the specified action.
|
getActionType
public BatchResult execute(BatchAction action, ExecutionContext context) throws ActionException
ActionHandler
ExecutionContext.execute(Action)
. See
here for details.action
- The action.context
- The ExecutionContext
.Result
.ActionException
- if there is a problem performing the specified action.public void undo(BatchAction action, BatchResult result, ExecutionContext context) throws ActionException
ActionHandler
ExecutionContext.undo(Action, Result)
. See
here for details.action
- The action.result
- The result of the action.context
- The ExecutionContext
.ActionException
- if there is a problem performing the specified action.Copyright © 2010–2014 Arcbees. All rights reserved.