Class CompositeAction
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
-
- org.apache.logging.log4j.core.appender.rolling.action.CompositeAction
-
public class CompositeAction extends AbstractAction
A group of Actions to be executed in sequence.
-
-
Field Summary
-
Fields inherited from class org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
LOGGER
-
-
Constructor Summary
Constructors Constructor Description CompositeAction(List<Action> actions, boolean stopOnError)
Construct a new composite action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute()
Execute sequence of actions.Action[]
getActions()
boolean
isStopOnError()
void
run()
String
toString()
-
Methods inherited from class org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
close, isComplete, isInterrupted, reportException
-
-
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classAbstractAction
-
execute
public boolean execute() throws IOException
Execute sequence of actions.- Specified by:
execute
in interfaceAction
- Specified by:
execute
in classAbstractAction
- Returns:
- true if all actions were successful.
- Throws:
IOException
- on IO error.
-
getActions
public Action[] getActions()
-
isStopOnError
public boolean isStopOnError()
-
-