Class BayeuxClient.BackOffStrategy.Constant
java.lang.Object
org.cometd.client.BayeuxClient.BackOffStrategy.Constant
- All Implemented Interfaces:
BayeuxClient.BackOffStrategy
- Enclosing interface:
BayeuxClient.BackOffStrategy
public static class BayeuxClient.BackOffStrategy.Constant
extends Object
implements BayeuxClient.BackOffStrategy
A back off strategy that always returns the same wait time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.client.BayeuxClient.BackOffStrategy
BayeuxClient.BackOffStrategy.Constant, BayeuxClient.BackOffStrategy.Linear
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Constant
public Constant(long delay)
-
-
Method Details
-
current
public long current()- Specified by:
current
in interfaceBayeuxClient.BackOffStrategy
- Returns:
- the current wait time
- See Also:
-
next
public long next()- Specified by:
next
in interfaceBayeuxClient.BackOffStrategy
- Returns:
- the next wait time
- See Also:
-
reset
public void reset()Description copied from interface:BayeuxClient.BackOffStrategy
Resets the wait time.- Specified by:
reset
in interfaceBayeuxClient.BackOffStrategy
-