Class RollingFileManager.AsyncAction

java.lang.Object
org.apache.logging.log4j.core.appender.rolling.action.AbstractAction
org.apache.logging.log4j.core.appender.rolling.RollingFileManager.AsyncAction
All Implemented Interfaces:
Runnable, Action
Enclosing class:
RollingFileManager

private static class RollingFileManager.AsyncAction extends AbstractAction
Performs actions asynchronously.
  • Field Details

  • Constructor Details

    • AsyncAction

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

    • execute

      public boolean execute() throws 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:
      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 String toString()
      Overrides:
      toString in class Object