Package org.cometd.client
Interface BayeuxClient.BackOffStrategy
-
- All Known Implementing Classes:
BayeuxClient.BackOffStrategy.Constant,BayeuxClient.BackOffStrategy.Linear
- Enclosing class:
- BayeuxClient
public static interface BayeuxClient.BackOffStrategyA strategy to controls wait times of the retry attempts in case of heartbeat failures.
Method
next()is invoked when a retry attempt has failed and returns the wait time before the next retry attempt.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBayeuxClient.BackOffStrategy.ConstantA back off strategy that always returns the same wait time.static classBayeuxClient.BackOffStrategy.LinearA strategy that increases the wait time linearly up to a maximum.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcurrent()longnext()voidreset()Resets the wait time.
-