public class HostDistanceOptions extends Object
PoolingOptions instances.
Configuration Parameters:
| Name | Default | Description |
| maxRequestsPerConnection | Default is dependent on protocol version. See driver docs for details. | The maximum number of connections per host. |
| newConnectionThreshold | Default is dependent on protocol version. See driver docs for details. | The threshold that triggers the creation of a new connection to a host. |
| coreConnections | No default. You must specify core connections. | The core number of connections per host. |
| maxConnections | No default. You must specify maximum connections. | The maximum number of connections per host. |
| Constructor and Description |
|---|
HostDistanceOptions() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCoreConnections() |
Integer |
getMaxConnections() |
Integer |
getMaxRequestsPerConnection() |
Integer |
getNewConnectionThreshold() |
void |
setCoreConnections(Integer coreConnections) |
void |
setMaxConnections(Integer maxConnections) |
void |
setMaxRequestsPerConnection(Integer maxRequestsPerConnection) |
void |
setNewConnectionThreshold(Integer newConnectionThreshold) |
public Integer getMaxRequestsPerConnection()
public void setMaxRequestsPerConnection(Integer maxRequestsPerConnection)
public Integer getNewConnectionThreshold()
public void setNewConnectionThreshold(Integer newConnectionThreshold)
public Integer getCoreConnections()
public void setCoreConnections(Integer coreConnections)
public Integer getMaxConnections()
public void setMaxConnections(Integer maxConnections)
Copyright © 2016 Composable Systems Limited. All rights reserved.