|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.streamhub.client.FailoverParameters
public class FailoverParameters
The failover parameters for a connection to StreamHub.
StreamHubGWTAdapter.connect(FailoverParameters)| Constructor Summary | |
|---|---|
FailoverParameters(List<String> servers)
Creates a new FailoverParameters object |
|
| Method Summary | |
|---|---|
FailoverAlgorithm |
getAlgorithm()
Gets the FailoverAlgorithm |
double |
getBackOffMultiplier()
Gets the multiplier used when exponential backoff is enabled via setUseExponentialBackOff(boolean). |
long |
getInitialReconnectDelayMillis()
Gets the initial time in milliseconds to wait before attempting reconnection |
int |
getMaxReconnectAttempts()
Gets the maximum number of failed reconnection attempts before giving up. |
long |
getMaxReconnectDelayMillis()
Gets the maximum amount of time in milliseconds to wait between reconnection attempts. |
List<String> |
getServers()
Gets the list of server URLs to connect to |
boolean |
isUseExponentialBackOff()
Returns true if exponential backoff is enabled, false
otherwise. |
void |
setAlgorithm(FailoverAlgorithm algorithm)
Sets the FailoverAlgorithm |
void |
setBackOffMultiplier(double backOffMultiplier)
Sets the multiplier used when exponential backoff is enabled via setUseExponentialBackOff(boolean). |
void |
setInitialReconnectDelayMillis(long initialReconnectDelayMillis)
Sets the initial time in milliseconds to wait before attempting reconnection |
void |
setMaxReconnectAttempts(int maxReconnectAttempts)
Sets the maximum number of failed reconnection attempts before giving up. |
void |
setMaxReconnectDelayMillis(long maxReconnectDelayMillis)
Sets the maximum amount of time in milliseconds to wait between reconnection attempts. |
void |
setUseExponentialBackOff(boolean useExponentialBackOff)
Enables or disables exponential backoff. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FailoverParameters(List<String> servers)
servers - A list of servers to connect to| Method Detail |
|---|
public FailoverAlgorithm getAlgorithm()
FailoverAlgorithm
public void setAlgorithm(FailoverAlgorithm algorithm)
FailoverAlgorithm
algorithm - the failover algorithm to usepublic long getInitialReconnectDelayMillis()
public void setInitialReconnectDelayMillis(long initialReconnectDelayMillis)
initialReconnectDelayMillis - the delay in millisecondspublic long getMaxReconnectDelayMillis()
setUseExponentialBackOff(boolean)
public void setMaxReconnectDelayMillis(long maxReconnectDelayMillis)
setUseExponentialBackOff(boolean)
maxReconnectDelayMillis - the max delay in millisecondspublic int getMaxReconnectAttempts()
public void setMaxReconnectAttempts(int maxReconnectAttempts)
maxReconnectAttempts - the maximum number of attemptspublic boolean isUseExponentialBackOff()
true if exponential backoff is enabled, false
otherwise.
true if exponential backoff is enabled, false otherwisepublic void setUseExponentialBackOff(boolean useExponentialBackOff)
setBackOffMultiplier(double)
useExponentialBackOff - true
public double getBackOffMultiplier()
setUseExponentialBackOff(boolean).
The delay between each reconnect attempt will be multiplied by this number upon each failed
reconnection attempt.
public void setBackOffMultiplier(double backOffMultiplier)
setUseExponentialBackOff(boolean).
The delay between each reconnect attempt will be multiplied by this number upon each failed
reconnection attempt.
public List<String> getServers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||