public static interface BayeuxClient.BackOffStrategy
A 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.
Modifier and Type | Interface and Description |
---|---|
static class |
BayeuxClient.BackOffStrategy.Constant
A back off strategy that always returns the same wait time.
|
static class |
BayeuxClient.BackOffStrategy.Linear
A strategy that increases the wait time linearly up to a maximum.
|
Modifier and Type | Method and Description |
---|---|
long |
current() |
long |
next() |
void |
reset()
Resets the wait time.
|
Copyright © 2008–2024 The CometD Project. All rights reserved.