Class CompositeAction
java.lang.Object
org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
org.apache.logging.log4j.core.appender.rolling.action.CompositeAction
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
ConstructorDescriptionCompositeAction
(List<Action> actions, boolean stopOnError) Construct a new composite action. -
Method Summary
Methods inherited from class org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
close, isComplete, isInterrupted, reportException
-
Constructor Details
-
CompositeAction
Construct a new composite action.- Parameters:
actions
- list of actions, may not be null.stopOnError
- if true, stop on the first false return value or exception.
-
-
Method Details
-
run
public void run()- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classAbstractAction
-
execute
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.
-
toString
-
getActions
-
isStopOnError
public boolean isStopOnError()
-