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
ConstructorsConstructorDescriptionFixedDelay(int delay) Initialize a newFixedDelaywith fixed delay value given bydelayparameter.FixedDelay(long initialDelay, long subsequentDelay) Initialize a newFixedDelaywith a giveninitialDelayandsubsequentDelay. -
Method Summary
Modifier and TypeMethodDescriptionlongThe value computed by thisDelayStrategyfor the next delay.
-
Constructor Details
-
FixedDelay
Initialize a newFixedDelaywith a giveninitialDelayandsubsequentDelay.- Parameters:
initialDelay- value for the initial delaysubsequentDelay- value for all other delays
-
FixedDelay
Initialize a newFixedDelaywith fixed delay value given bydelayparameter.- Parameters:
delay- value for all delays
-
-
Method Details
-
nextDelay
The value computed by thisDelayStrategyfor the next delay.- Specified by:
nextDelayin interfaceDelayStrategy- Returns:
- a delay value
-