Class ConnectionPoolConfigurationBuilder
java.lang.Object
org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
org.infinispan.client.hotrod.configuration.ConnectionPoolConfigurationBuilder
- All Implemented Interfaces:
ConfigurationChildBuilder, org.infinispan.commons.configuration.Builder<ConnectionPoolConfiguration>
@Deprecated(forRemoval=true,
since="15.1")
public class ConnectionPoolConfigurationBuilder
extends AbstractConfigurationChildBuilder
implements org.infinispan.commons.configuration.Builder<ConnectionPoolConfiguration>
Deprecated, for removal: This API element is subject to removal in a future version.
since 15.1, the connection pool is no longer used
ConnectionPoolConfigurationBuilder. Specifies connection pooling properties for the HotRod client.
- Since:
- 5.3
- Author:
- Tristan Tarrant
-
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.configuration.attributes.AttributeSetDeprecated, for removal: This API element is subject to removal in a future version.create()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the configured action when the pool has become exhausted.exhaustedAction(ExhaustedAction exhaustedAction) Deprecated, for removal: This API element is subject to removal in a future version.Specifies what happens when asking for a connection from a server's pool, and that pool is exhausted.intDeprecated, for removal: This API element is subject to removal in a future version.Returns the number of configured maximum connections per server that can be allocated.maxActive(int maxActive) Deprecated, for removal: This API element is subject to removal in a future version.Controls the maximum number of connections per server that are allocated (checked out to client threads, or idle in the pool) at one time.maxPendingRequests(int maxPendingRequests) Deprecated, for removal: This API element is subject to removal in a future version.Specifies maximum number of requests sent over single connection at one instant.maxWait(long maxWait) Deprecated, for removal: This API element is subject to removal in a future version.The amount of time in milliseconds to wait for a connection to become available when the exhausted action isExhaustedAction.WAIT, after which aNoSuchElementExceptionwill be thrown.minEvictableIdleTime(long minEvictableIdleTime) Deprecated, for removal: This API element is subject to removal in a future version.Specifies the minimum amount of time that an connection may sit idle in the pool before it is eligible for eviction due to idle time.minIdle(int minIdle) Deprecated, for removal: This API element is subject to removal in a future version.Sets a target value for the minimum number of idle connections (per server) that should always be available.read(ConnectionPoolConfiguration template, org.infinispan.commons.configuration.Combine combine) Deprecated, for removal: This API element is subject to removal in a future version.withPoolProperties(Properties properties) Deprecated, for removal: This API element is subject to removal in a future version.Configures the connection pool parameter according to propertiesMethods inherited from class AbstractConfigurationChildBuilder
addCluster, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialAllowList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, dnsResolverMaxTTL, dnsResolverMinTTL, dnsResolverNegativeTTL, forceReturnValues, marshaller, marshaller, marshaller, maxRetries, remoteCache, security, serverFailureTimeout, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transactionTimeout, transportFactory, uri, uri, version, withMetricRegistry, withPropertiesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.configuration.Builder
read, reset, validate
-
Method Details
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<ConnectionPoolConfiguration>
-
exhaustedAction
Deprecated, for removal: This API element is subject to removal in a future version.Specifies what happens when asking for a connection from a server's pool, and that pool is exhausted. -
exhaustedAction
Deprecated, for removal: This API element is subject to removal in a future version.Returns the configured action when the pool has become exhausted.- Returns:
- the action to perform
-
maxActive
Deprecated, for removal: This API element is subject to removal in a future version.Controls the maximum number of connections per server that are allocated (checked out to client threads, or idle in the pool) at one time. When non-positive, there is no limit to the number of connections per server. When maxActive is reached, the connection pool for that server is said to be exhausted. The default setting for this parameter is -1, i.e. there is no limit. -
maxActive
public int maxActive()Deprecated, for removal: This API element is subject to removal in a future version.Returns the number of configured maximum connections per server that can be allocated. When this is non-positive there is no limit to the number of connections.- Returns:
- maximum number of open connections to a server
-
maxWait
Deprecated, for removal: This API element is subject to removal in a future version.The amount of time in milliseconds to wait for a connection to become available when the exhausted action isExhaustedAction.WAIT, after which aNoSuchElementExceptionwill be thrown. If a negative value is supplied, the pool will block indefinitely. -
minIdle
Deprecated, for removal: This API element is subject to removal in a future version.Sets a target value for the minimum number of idle connections (per server) that should always be available. If this parameter is set to a positive number and timeBetweenEvictionRunsMillis > 0, each time the idle connection eviction thread runs, it will try to create enough idle instances so that there will be minIdle idle instances available for each server. The default setting for this parameter is 1. -
minEvictableIdleTime
Deprecated, for removal: This API element is subject to removal in a future version.Specifies the minimum amount of time that an connection may sit idle in the pool before it is eligible for eviction due to idle time. When non-positive, no connection will be dropped from the pool due to idle time alone. This setting has no effect unless timeBetweenEvictionRunsMillis > 0. Defaults toConfigurationProperties.DEFAULT_MIN_EVICTABLE_IDLE_TIME -
maxPendingRequests
Deprecated, for removal: This API element is subject to removal in a future version.Specifies maximum number of requests sent over single connection at one instant. Connections with more concurrent requests will be ignored in the pool when choosing available connection and the pool will try to create a new connection if all connections are utilized. Only if the new connection cannot be created and theexhausted actionis set toExhaustedAction.WAITthe pool will allow sending the request over one of the over-utilized connections. The rule of thumb is that this should be set to higher values if the values are small (< 1kB) and to lower values if the entries are big (> 10kB). Default setting for this parameter is 5. -
withPoolProperties
Deprecated, for removal: This API element is subject to removal in a future version.Configures the connection pool parameter according to properties -
create
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<ConnectionPoolConfiguration>
-
read
public ConnectionPoolConfigurationBuilder read(ConnectionPoolConfiguration template, org.infinispan.commons.configuration.Combine combine) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<ConnectionPoolConfiguration>
-