Package org.cometd.client
Class BayeuxClient.BackOffStrategy.Linear
- java.lang.Object
-
- org.cometd.client.BayeuxClient.BackOffStrategy.Linear
-
- All Implemented Interfaces:
BayeuxClient.BackOffStrategy
- Enclosing interface:
- BayeuxClient.BackOffStrategy
public static class BayeuxClient.BackOffStrategy.Linear extends java.lang.Object implements BayeuxClient.BackOffStrategy
A strategy that increases the wait time linearly up to a maximum.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cometd.client.BayeuxClient.BackOffStrategy
BayeuxClient.BackOffStrategy.Constant, BayeuxClient.BackOffStrategy.Linear
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcurrent()longnext()voidreset()Resets the wait time.
-
-
-
Method Detail
-
current
public long current()
- Specified by:
currentin interfaceBayeuxClient.BackOffStrategy- Returns:
- the current wait time
- See Also:
BayeuxClient.BackOffStrategy.next(),BayeuxClient.BackOffStrategy.reset()
-
next
public long next()
- Specified by:
nextin interfaceBayeuxClient.BackOffStrategy- Returns:
- the next wait time
- See Also:
BayeuxClient.BackOffStrategy.current()
-
reset
public void reset()
Description copied from interface:BayeuxClient.BackOffStrategyResets the wait time.- Specified by:
resetin interfaceBayeuxClient.BackOffStrategy
-
-