private static class RollingFileManager.AsyncAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
private Action |
action |
private RollingFileManager |
manager |
LOGGER
Constructor and Description |
---|
AsyncAction(Action act,
RollingFileManager manager)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Cancels the action if not already initialized or waits till completion.
|
boolean |
execute()
Executes an action.
|
boolean |
isComplete()
Determines if action has been completed.
|
java.lang.String |
toString() |
isInterrupted, reportException, run
private final Action action
private final RollingFileManager manager
public AsyncAction(Action act, RollingFileManager manager)
act
- The action to perform.manager
- The manager.public boolean execute() throws java.io.IOException
execute
in interface Action
execute
in class AbstractAction
java.io.IOException
- if IO error, a thrown exception will cause the rollover
to be aborted if possible.public void close()
close
in interface Action
close
in class AbstractAction
public boolean isComplete()
isComplete
in interface Action
isComplete
in class AbstractAction
public java.lang.String toString()
toString
in class java.lang.Object