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 Object
implements Builder<TimeBasedTriggeringPolicy>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.int
int
boolean
withInterval
(int interval) withMaxRandomDelay
(int maxRandomDelay) withModulate
(boolean modulate)
-
Field Details
-
interval
-
modulate
-
maxRandomDelay
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<TimeBasedTriggeringPolicy>
- Returns:
- the configured instance.
-
getInterval
public int getInterval() -
isModulate
public boolean isModulate() -
getMaxRandomDelay
public int getMaxRandomDelay() -
withInterval
-
withModulate
-
withMaxRandomDelay
-