public class CompositeAction extends AbstractAction
LOGGER
Constructor and Description |
---|
CompositeAction(List<Action> actions,
boolean stopOnError)
Construct a new composite action.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute()
Execute sequence of actions.
|
Action[] |
getActions() |
boolean |
isStopOnError() |
void |
run() |
String |
toString() |
close, isComplete, isInterrupted, reportException
public CompositeAction(List<Action> actions, boolean stopOnError)
actions
- list of actions, may not be null.stopOnError
- if true, stop on the first false return value or exception.public void run()
run
in interface Runnable
run
in class AbstractAction
public boolean execute() throws IOException
execute
in interface Action
execute
in class AbstractAction
IOException
- on IO error.public Action[] getActions()
public boolean isStopOnError()
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.