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, runprivate 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 Actionexecute in class AbstractActionjava.io.IOException - if IO error, a thrown exception will cause the rollover
to be aborted if possible.public void close()
close in interface Actionclose in class AbstractActionpublic boolean isComplete()
isComplete in interface ActionisComplete in class AbstractActionpublic java.lang.String toString()
toString in class java.lang.Object