Package org.cometd.client
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
Constructors Constructor Description Constant(long delay)
-
-
-
Method Detail
-
current
public long current()
- Specified by:
current
in interfaceBayeuxClient.BackOffStrategy
- Returns:
- the current wait time
- See Also:
BayeuxClient.BackOffStrategy.next()
,BayeuxClient.BackOffStrategy.reset()
-
next
public long next()
- Specified by:
next
in interfaceBayeuxClient.BackOffStrategy
- Returns:
- the next wait time
- See Also:
BayeuxClient.BackOffStrategy.current()
-
reset
public void reset()
Description copied from interface:BayeuxClient.BackOffStrategy
Resets the wait time.- Specified by:
reset
in interfaceBayeuxClient.BackOffStrategy
-
-