Package | Description |
---|---|
org.infinispan.client.hotrod.configuration |
Hot Rod client configuration API.
|
Modifier and Type | Method and Description |
---|---|
ConnectionPoolConfigurationBuilder |
ConfigurationChildBuilder.connectionPool()
Configures the connection pool
|
ConnectionPoolConfigurationBuilder |
ConfigurationBuilder.connectionPool() |
ConnectionPoolConfigurationBuilder |
AbstractConfigurationChildBuilder.connectionPool() |
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.exhaustedAction(ExhaustedAction exhaustedAction)
Specifies what happens when asking for a connection from a server's pool, and that pool is
exhausted.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.lifo(boolean enabled)
Deprecated.
Always LIFO.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.maxActive(int maxActive)
Controls the maximum number of connections per server that are allocated (checked out to
client threads, or idle in the pool) at one time.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.maxIdle(int maxIdle)
Deprecated.
Unsupported with Netty pool implementation.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.maxPendingRequests(int maxPendingRequests)
Specifies maximum number of requests sent over single connection at one instant.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.maxTotal(int maxTotal)
Deprecated.
Since with Netty implementation we keep a pool-per-server we can't limit totals.
While setting a total number of connections may seem convenient, it leads to port exhaustion
under heavy load: the pool keeps closing and opening connections in a fast succession and
since port is not freed by operating system immediately after closing that (it's in TIME_WAIT
state), the client runs out of available ports (<64k) soon.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.maxWait(long maxWait)
The amount of time in milliseconds to wait for a connection to become available when the
exhausted action is
ExhaustedAction.WAIT , after which a NoSuchElementException
will be thrown. |
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.minEvictableIdleTime(long minEvictableIdleTime)
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.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.minIdle(int minIdle)
Sets a target value for the minimum number of idle connections (per server) that should always
be available.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.numTestsPerEvictionRun(int numTestsPerEvictionRun)
Deprecated.
Unsupported with Netty pool implementation.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.read(ConnectionPoolConfiguration template) |
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.testOnBorrow(boolean testOnBorrow)
Deprecated.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.testOnReturn(boolean testOnReturn)
Deprecated.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.testWhileIdle(boolean testWhileIdle)
Deprecated.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.timeBetweenEvictionRuns(long timeBetweenEvictionRuns)
Deprecated.
Connection eviction uses the event-loop executor thread.
|
ConnectionPoolConfigurationBuilder |
ConnectionPoolConfigurationBuilder.withPoolProperties(Properties properties)
Configures the connection pool parameter according to properties
|
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.