public class ConnectionRetryConfig extends Object
| Constructor and Description | 
|---|
| ConnectionRetryConfig() | 
| ConnectionRetryConfig(ConnectionRetryConfig connectionRetryConfig) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| long | getClusterConnectTimeoutMillis()Timeout value in seconds for the client to give up to connect to the current cluster
 Depending on FailoverConfig, a client can shutdown or start trying on alternative cluster after reaching the timeout. | 
| int | getInitialBackoffMillis()how long to wait after the first failure before retrying | 
| double | getJitter()by how much to randomize backoffs. | 
| int | getMaxBackoffMillis()When backoff reaches this upper bound, it does not increase any more. | 
| double | getMultiplier()factor with which to multiply backoff after a failed retry | 
| int | hashCode() | 
| ConnectionRetryConfig | setClusterConnectTimeoutMillis(long clusterConnectTimeoutMillis) | 
| ConnectionRetryConfig | setInitialBackoffMillis(int initialBackoffMillis) | 
| ConnectionRetryConfig | setJitter(double jitter)At each iteration calculated back-off is randomized via following method
 Random(-jitter * current_backoff, jitter * current_backoff) | 
| ConnectionRetryConfig | setMaxBackoffMillis(int maxBackoffMillis)When backoff reaches this upper bound, it does not increase any more. | 
| ConnectionRetryConfig | setMultiplier(double multiplier) | 
| String | toString() | 
public ConnectionRetryConfig()
public ConnectionRetryConfig(ConnectionRetryConfig connectionRetryConfig)
public int getInitialBackoffMillis()
public ConnectionRetryConfig setInitialBackoffMillis(int initialBackoffMillis)
initialBackoffMillis - how long to wait after the first failure before retryingpublic int getMaxBackoffMillis()
public ConnectionRetryConfig setMaxBackoffMillis(int maxBackoffMillis)
maxBackoffMillis - upper bound on backoffpublic double getMultiplier()
public ConnectionRetryConfig setMultiplier(double multiplier)
multiplier - factor with which to multiply backoff after a failed retrypublic long getClusterConnectTimeoutMillis()
public ConnectionRetryConfig setClusterConnectTimeoutMillis(long clusterConnectTimeoutMillis)
clusterConnectTimeoutMillis - timeout in milliseconds for the client to give up to connect to the current cluster
                                    Depending on FailoverConfig, a client can shutdown or start trying on alternative
                                    cluster after reaching the timeout.public double getJitter()
public ConnectionRetryConfig setJitter(double jitter)
jitter - by how much to randomize backoffsCopyright © 2020 Hazelcast, Inc.. All rights reserved.