Class TimeBasedTriggeringPolicy.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy.Builder
-
- All Implemented Interfaces:
Builder<TimeBasedTriggeringPolicy>
- Enclosing class:
- TimeBasedTriggeringPolicy
public static class TimeBasedTriggeringPolicy.Builder extends java.lang.Object implements Builder<TimeBasedTriggeringPolicy>
-
-
Field Summary
Fields Modifier and Type Field Description private intintervalprivate intmaxRandomDelayprivate booleanmodulate
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeBasedTriggeringPolicybuild()Builds the object after all configuration has been set.intgetInterval()intgetMaxRandomDelay()booleanisModulate()TimeBasedTriggeringPolicy.BuilderwithInterval(int interval)TimeBasedTriggeringPolicy.BuilderwithMaxRandomDelay(int maxRandomDelay)TimeBasedTriggeringPolicy.BuilderwithModulate(boolean modulate)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
-
-
-
Field Detail
-
interval
@PluginBuilderAttribute private int interval
-
modulate
@PluginBuilderAttribute private boolean modulate
-
maxRandomDelay
@PluginBuilderAttribute private int maxRandomDelay
-
-
Method Detail
-
build
public TimeBasedTriggeringPolicy build()
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<TimeBasedTriggeringPolicy>- Returns:
- the configured instance.
-
getInterval
public int getInterval()
-
isModulate
public boolean isModulate()
-
getMaxRandomDelay
public int getMaxRandomDelay()
-
withInterval
public TimeBasedTriggeringPolicy.Builder withInterval(int interval)
-
withModulate
public TimeBasedTriggeringPolicy.Builder withModulate(boolean modulate)
-
withMaxRandomDelay
public TimeBasedTriggeringPolicy.Builder withMaxRandomDelay(int maxRandomDelay)
-
-