Class RollingFileManager.AsyncAction
java.lang.Object
org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
org.apache.logging.log4j.core.appender.rolling.RollingFileManager.AsyncAction
- Enclosing class:
- RollingFileManager
Performs actions asynchronously.
-
Field Summary
FieldsFields inherited from class org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
LOGGER
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
isInterrupted, reportException, run
-
Field Details
-
action
-
manager
-
-
Constructor Details
-
AsyncAction
Constructor.- Parameters:
act
- The action to perform.manager
- The manager.
-
-
Method Details
-
execute
Executes an action.- Specified by:
execute
in interfaceAction
- Specified by:
execute
in classAbstractAction
- Returns:
- true if action was successful. A return value of false will cause the rollover to be aborted if possible.
- Throws:
IOException
- if IO error, a thrown exception will cause the rollover to be aborted if possible.
-
close
public void close()Cancels the action if not already initialized or waits till completion.- Specified by:
close
in interfaceAction
- Overrides:
close
in classAbstractAction
-
isComplete
public boolean isComplete()Determines if action has been completed.- Specified by:
isComplete
in interfaceAction
- Overrides:
isComplete
in classAbstractAction
- Returns:
- true if action is complete.
-
toString
-