protected abstract static class PoolingOptionsFactoryBean.HostDistancePoolingOptions extends Object
PoolingOptions state and connection settings for a
particular HostDistance.HostDistance,
PoolingOptions| Modifier | Constructor and Description |
|---|---|
protected |
HostDistancePoolingOptions(Integer coreConnectionsPerHost,
Integer maxConnectionsPerHost,
Integer maxRequestsPerConnection,
Integer newConnectionThreshold)
Constructs an instance of
PoolingOptionsFactoryBean.HostDistancePoolingOptions with PoolingOptions connection settings
specific to a particular HostDistance. |
| Modifier and Type | Method and Description |
|---|---|
protected Integer |
getCoreConnectionsPerHost()
Returns the core number of connections per host.
|
protected abstract com.datastax.driver.core.HostDistance |
getHostDistance()
Returns the
HostDistance used to configure the specific PoolingOptions connection settings. |
protected Integer |
getMaxConnectionsPerHost()
Returns the maximum number of connections per host.
|
protected Integer |
getMaxRequestsPerConnection()
Returns the maximum number of requests per connection.
|
protected Integer |
getNewConnectionThreshold()
Returns the threshold that triggers the creation of a new connection to a host.
|
protected HostDistancePoolingOptions(@Nullable Integer coreConnectionsPerHost, @Nullable Integer maxConnectionsPerHost, @Nullable Integer maxRequestsPerConnection, @Nullable Integer newConnectionThreshold)
PoolingOptionsFactoryBean.HostDistancePoolingOptions with PoolingOptions connection settings
specific to a particular HostDistance.coreConnectionsPerHost - core number of connections per host.maxConnectionsPerHost - maximum number of connections per host.maxRequestsPerConnection - maximum number of requests per connection.newConnectionThreshold - threshold that triggers the creation of a new connection to a host.protected abstract com.datastax.driver.core.HostDistance getHostDistance()
HostDistance used to configure the specific PoolingOptions connection settings.HostDistance used to configure the specific PoolingOptions connection settings.HostDistance@Nullable protected Integer getCoreConnectionsPerHost()
coreConnectionsPerHost.PoolingOptions.getCoreConnectionsPerHost(HostDistance),
getHostDistance()@Nullable protected Integer getMaxConnectionsPerHost()
maxConnectionsPerHost.PoolingOptions.getMaxConnectionsPerHost(HostDistance),
getHostDistance()@Nullable protected Integer getMaxRequestsPerConnection()
maxRequestsPerConnection.PoolingOptions.getMaxRequestsPerConnection(HostDistance),
getHostDistance()@Nullable protected Integer getNewConnectionThreshold()
newConnectionThreshold.PoolingOptions.getNewConnectionThreshold(HostDistance),
getHostDistance()Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.