Class RollingFileManager.AsyncAction

  • All Implemented Interfaces:
    java.lang.Runnable, Action
    Enclosing class:
    RollingFileManager

    private static class RollingFileManager.AsyncAction
    extends AbstractAction
    Performs actions asynchronously.
    • Constructor Detail

      • AsyncAction

        public AsyncAction​(Action act,
                           RollingFileManager manager)
        Constructor.
        Parameters:
        act - The action to perform.
        manager - The manager.
    • Method Detail

      • execute

        public boolean execute()
                        throws java.io.IOException
        Executes an action.
        Specified by:
        execute in interface Action
        Specified by:
        execute in class AbstractAction
        Returns:
        true if action was successful. A return value of false will cause the rollover to be aborted if possible.
        Throws:
        java.io.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 interface Action
        Overrides:
        close in class AbstractAction
      • isComplete

        public boolean isComplete()
        Determines if action has been completed.
        Specified by:
        isComplete in interface Action
        Overrides:
        isComplete in class AbstractAction
        Returns:
        true if action is complete.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object