public static class BayeuxClient.BackOffStrategy.Constant extends Object implements BayeuxClient.BackOffStrategy
A back off strategy that always returns the same wait time.
BayeuxClient.BackOffStrategy.Constant, BayeuxClient.BackOffStrategy.Linear
Constructor and Description |
---|
Constant(long delay) |
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.