Interface TimeBasedFileNamingAndTriggeringPolicy<E>

Type Parameters:
E -
All Superinterfaces:
ContextAware, LifeCycle, TriggeringPolicy<E>
All Known Implementing Classes:
DefaultTimeBasedFileNamingAndTriggeringPolicy, SizeAndTimeBasedFNATP, TimeBasedFileNamingAndTriggeringPolicyBase

This interface lists the set of methods that need to be implemented by triggering policies which are nested within a TimeBasedRollingPolicy.
Author:
Ceki Gülcü
  • Method Details

    • setTimeBasedRollingPolicy

      Set the host/parent TimeBasedRollingPolicy.
      Parameters:
      tbrp - parent TimeBasedRollingPolicy
    • getElapsedPeriodsFileName

      Return the file name for the elapsed periods file name.
      Returns:
    • getCurrentPeriodsFileNameWithoutCompressionSuffix

      Return the current periods file name without the compression suffix. This value is equivalent to the active file name.
      Returns:
      current period's file name (without compression suffix)
    • getArchiveRemover

      Return the archive remover appropriate for this instance.
    • getCurrentTime

      Return the current time which is usually the value returned by System.currentMillis(). However, for testing purposed this value may be different than the real time.
      Returns:
      current time value
    • setCurrentTime

      void setCurrentTime(long now)
      Set the current time. Only unit tests should invoke this method.
      Parameters:
      now -