Interface RollingPolicy


public interface RollingPolicy
Defines the policy based on which RollingFileAppender will generate rolling files.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bytesWritten(long bytes)
    Notify that bytes have been written
    Get the desired name of the rollover file
    void
    Notify that rollover has occurred
    boolean
    shouldRollover(long bytesToBeWritten)
    Whether rollover should be initiated at this moment
  • Method Details

    • bytesWritten

      void bytesWritten(long bytes)
      Notify that bytes have been written
    • generateRolledOverFileSuffix

      String generateRolledOverFileSuffix()
      Get the desired name of the rollover file
    • rolledOver

      void rolledOver()
      Notify that rollover has occurred
    • shouldRollover

      boolean shouldRollover(long bytesToBeWritten)
      Whether rollover should be initiated at this moment