TriggeringPolicy, LifeCycle, LifeCycle2@Plugin(name="TimeBasedTriggeringPolicy", category="Core", printObject=true) public final class TimeBasedTriggeringPolicy extends AbstractTriggeringPolicy
| Modifier and Type | Class | Description |
|---|---|---|
static class |
TimeBasedTriggeringPolicy.Builder |
LifeCycle.StateDEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER| Modifier and Type | Method | Description |
|---|---|---|
static TimeBasedTriggeringPolicy |
createPolicy(String interval,
String modulate) |
Deprecated.
Use
newBuilder(). |
int |
getInterval() |
|
long |
getNextRolloverMillis() |
|
void |
initialize(RollingFileManager aManager) |
Initializes the policy.
|
boolean |
isTriggeringEvent(LogEvent event) |
Determines whether a rollover should occur.
|
static TimeBasedTriggeringPolicy.Builder |
newBuilder() |
|
String |
toString() |
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, start, stop, stop, stoppublic int getInterval()
public long getNextRolloverMillis()
public void initialize(RollingFileManager aManager)
aManager - The RollingFileManager.public boolean isTriggeringEvent(LogEvent event)
event - A reference to the currently event.@Deprecated public static TimeBasedTriggeringPolicy createPolicy(@PluginAttribute("interval") String interval, @PluginAttribute("modulate") String modulate)
newBuilder().interval - The interval between rollovers.modulate - If true the time will be rounded to occur on a boundary aligned with the increment.@PluginBuilderFactory public static TimeBasedTriggeringPolicy.Builder newBuilder()
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.