public interface ReconnectDelayStrategy
ExponentialDelayStrategy and FixedDelayStrategy.| Modifier and Type | Method and Description |
|---|---|
int |
getConnectWaitDuration(java.lang.String uri_)
Returns the time (in milliseconds) that the client should wait before
connecting to the given server URI.
|
void |
reset()
Reset the state of this reconnect delay.
|
int getConnectWaitDuration(java.lang.String uri_)
throws java.lang.Exception
uri_ - The URI to which the client plans to connect.java.lang.Exception - Any exception thrown indicates no connection
should be attempted; the client in essence
should "give up."void reset()