Top Description Fields Constructors Methods
ch.qos.logback.core.util

public Class FixedDelay

extends Object
implements DelayStrategy
Class Inheritance
All Implemented Interfaces
ch.qos.logback.core.util.DelayStrategy

A default DelayStrategy that implements a simple fixed delay.
Author
Carl Harris
Since
1.1.0

Field Summary

Modifier and TypeField and Description
private long
private final long

Constructor Summary

AccessConstructor and Description
public
FixedDelay(long
value for the initial delay
initialDelay
,
long
value for all other delays
subsequentDelay
)

Initialize a new FixedDelay with a given initialDelay and subsequentDelay.

public
FixedDelay(int
value for all delays
delay
)

Initialize a new FixedDelay with fixed delay value given by delay parameter.

Method Summary

Modifier and TypeMethod and Description
public long
nextDelay()

Implements ch.qos.logback.core.util.DelayStrategy.nextDelay.

The value computed by this DelayStrategy for the next delay.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nextDelayback to summary
private long nextDelay
subsequentDelayback to summary
private final long subsequentDelay

Constructor Detail

FixedDelayback to summary
public FixedDelay(long initialDelay, long subsequentDelay)

Initialize a new FixedDelay with a given initialDelay and subsequentDelay.

Parameters
initialDelay:long

value for the initial delay

subsequentDelay:long

value for all other delays

FixedDelayback to summary
public FixedDelay(int delay)

Initialize a new FixedDelay with fixed delay value given by delay parameter.

Parameters
delay:int

value for all delays

Method Detail

nextDelayback to summary
public long nextDelay()

Implements ch.qos.logback.core.util.DelayStrategy.nextDelay.

Doc from ch.qos.logback.core.util.DelayStrategy.nextDelay.

The value computed by this DelayStrategy for the next delay.

Returns:long

a delay value