java.lang.Object
ch.qos.logback.core.util.FixedDelay
- All Implemented Interfaces:
DelayStrategy
A default
DelayStrategy
that implements a simple fixed delay.- Since:
- 1.1.0
- Author:
- Carl Harris
-
Constructor Summary
ConstructorDescriptionFixedDelay
(int delay) Initialize a newFixedDelay
with fixed delay value given bydelay
parameter.FixedDelay
(long initialDelay, long subsequentDelay) Initialize a newFixedDelay
with a giveninitialDelay
andsubsequentDelay
. -
Method Summary
Modifier and TypeMethodDescriptionlong
The value computed by thisDelayStrategy
for the next delay.
-
Constructor Details
-
FixedDelay
Initialize a newFixedDelay
with a giveninitialDelay
andsubsequentDelay
.- Parameters:
initialDelay
- value for the initial delaysubsequentDelay
- value for all other delays
-
FixedDelay
Initialize a newFixedDelay
with fixed delay value given bydelay
parameter.- Parameters:
delay
- value for all delays
-
-
Method Details
-
nextDelay
The value computed by thisDelayStrategy
for the next delay.- Specified by:
nextDelay
in interfaceDelayStrategy
- Returns:
- a delay value
-