public static class BayeuxClient.BackOffStrategy.Linear extends Object implements BayeuxClient.BackOffStrategy
A strategy that increases the wait time linearly up to a maximum.
BayeuxClient.BackOffStrategy.Constant, BayeuxClient.BackOffStrategy.Linear
Constructor and Description |
---|
Linear() |
Linear(long increment,
long maximum) |
Modifier and Type | Method and Description |
---|---|
long |
current() |
long |
next() |
void |
reset()
Resets the wait time.
|
public long current()
current
in interface BayeuxClient.BackOffStrategy
BayeuxClient.BackOffStrategy.next()
,
BayeuxClient.BackOffStrategy.reset()
public long next()
next
in interface BayeuxClient.BackOffStrategy
BayeuxClient.BackOffStrategy.current()
public void reset()
BayeuxClient.BackOffStrategy
reset
in interface BayeuxClient.BackOffStrategy
Copyright © 2008–2024 The CometD Project. All rights reserved.