Class ConnectionPoolConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
org.infinispan.persistence.remote.configuration.AbstractRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
org.infinispan.persistence.remote.configuration.ConnectionPoolConfigurationBuilder
- All Implemented Interfaces:
Builder<ConnectionPoolConfiguration>, ConfigurationChildBuilder, PersistenceConfigurationChildBuilder, StoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>, RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
@Deprecated(forRemoval=true,
since="15.1")
public class ConnectionPoolConfigurationBuilder
extends AbstractRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
implements Builder<ConnectionPoolConfiguration>
Deprecated, for removal: This API element is subject to removal in a future version.
ConnectionPoolConfigurationBuilder. Specifies connection pooling properties for the HotRod client.
- Since:
- 5.2
- Author:
- Tristan Tarrant
-
Field Summary
Fields inherited from class AbstractRemoteStoreConfigurationChildBuilder
attributes, builder -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.build()create()Deprecated, for removal: This API element is subject to removal in a future version.Create the configuration beanencoding()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.protected ConfigurationBuilderindexing()locking()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(int 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.memory()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.query()read(ConnectionPoolConfiguration template, Combine combine) Deprecated, for removal: This API element is subject to removal in a future version.Reads the configuration from an already created configuration bean into this builder.security()booleansimpleCache(boolean simpleCache) sites()template(boolean template) tracing()unsafe()voidvalidate(GlobalConfiguration globalConfig) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class AbstractRemoteStoreConfigurationChildBuilder
addServer, asyncExecutorFactory, balancingStrategy, connectionPool, connectionTimeout, forceReturnValues, getRemoteStoreBuilder, marshaller, marshaller, protocolVersion, remoteCacheContainer, remoteCacheName, remoteSecurity, socketTimeout, tcpNoDelayMethods inherited from class AbstractStoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnlyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigurationChildBuilder
aliases, build, clustering, encoding, expiration, indexing, invocationBatching, locking, memory, query, security, simpleCache, simpleCache, sites, statistics, template, tracing, transaction, unsafeMethods inherited from interface PersistenceConfigurationChildBuilder
persistenceMethods inherited from interface StoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnly
-
Method Details
-
attributes
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
attributesin interfaceBuilder<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. -
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. -
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. The default setting for this parameter is 1800000(30 minutes). -
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. -
validate
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<ConnectionPoolConfiguration>- Returns:
-
read
public ConnectionPoolConfigurationBuilder read(ConnectionPoolConfiguration template, Combine combine) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<ConnectionPoolConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
aliases
- Specified by:
aliasesin interfaceConfigurationChildBuilder
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
tracing
- Specified by:
tracingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-