E
- public interface TimeBasedFileNamingAndTriggeringPolicy<E> extends TriggeringPolicy<E>, ContextAware
TimeBasedRollingPolicy
.Modifier and Type | Method and Description |
---|---|
ArchiveRemover |
getArchiveRemover()
Return the archive remover appropriate for this instance.
|
java.lang.String |
getCurrentPeriodsFileNameWithoutCompressionSuffix()
Return the current periods file name without the compression suffix.
|
long |
getCurrentTime()
Return the current time which is usually the value returned by
System.currentMillis().
|
java.lang.String |
getElapsedPeriodsFileName()
Return the file name for the elapsed periods file name.
|
void |
setCurrentTime(long now)
Set the current time.
|
void |
setTimeBasedRollingPolicy(TimeBasedRollingPolicy<E> tbrp)
Set the host/parent
TimeBasedRollingPolicy . |
isTriggeringEvent
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
void setTimeBasedRollingPolicy(TimeBasedRollingPolicy<E> tbrp)
TimeBasedRollingPolicy
.tbrp
- parent TimeBasedRollingPolicyjava.lang.String getElapsedPeriodsFileName()
java.lang.String getCurrentPeriodsFileNameWithoutCompressionSuffix()
ArchiveRemover getArchiveRemover()
long getCurrentTime()
void setCurrentTime(long now)
now
- Copyright © 2010 - 2020 Adobe. All Rights Reserved