public class ConnectionPoolConfigurationBuilder extends AbstractRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder> implements Builder<ConnectionPoolConfiguration>
attributes
Modifier and Type | Method and Description |
---|---|
Configuration |
build() |
ClusteringConfigurationBuilder |
clustering() |
CompatibilityModeConfigurationBuilder |
compatibility() |
ConnectionPoolConfiguration |
create()
Create the configuration bean
|
CustomInterceptorsConfigurationBuilder |
customInterceptors() |
DataContainerConfigurationBuilder |
dataContainer() |
DeadlockDetectionConfigurationBuilder |
deadlockDetection() |
EncodingConfigurationBuilder |
encoding() |
EvictionConfigurationBuilder |
eviction() |
ConnectionPoolConfigurationBuilder |
exhaustedAction(ExhaustedAction exhaustedAction)
Specifies what happens when asking for a connection from a server's pool, and that pool is
exhausted.
|
ExpirationConfigurationBuilder |
expiration() |
protected ConfigurationBuilder |
getBuilder() |
IndexingConfigurationBuilder |
indexing() |
InvocationBatchingConfigurationBuilder |
invocationBatching() |
JMXStatisticsConfigurationBuilder |
jmxStatistics() |
LockingConfigurationBuilder |
locking() |
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 |
maxIdle(int maxIdle)
Controls the maximum number of idle persistent connections, per server, at any time.
|
ConnectionPoolConfigurationBuilder |
maxTotal(int maxTotal)
Sets a global limit on the number persistent connections that can be in circulation within the
combined set of servers.
|
MemoryConfigurationBuilder |
memory() |
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 |
minIdle(int minIdle)
Sets a target value for the minimum number of idle connections (per server) that should always
be available.
|
PersistenceConfigurationBuilder |
persistence() |
ConnectionPoolConfigurationBuilder |
read(ConnectionPoolConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
SecurityConfigurationBuilder |
security() |
boolean |
simpleCache() |
ConfigurationChildBuilder |
simpleCache(boolean simpleCache) |
SitesConfigurationBuilder |
sites() |
StoreAsBinaryConfigurationBuilder |
storeAsBinary()
Deprecated.
|
ConfigurationChildBuilder |
template(boolean template) |
ConnectionPoolConfigurationBuilder |
testWhileIdle(boolean testWhileIdle)
Indicates whether or not idle connections should be validated by sending an TCP packet to the
server, during idle connection eviction runs.
|
ConnectionPoolConfigurationBuilder |
timeBetweenEvictionRuns(long timeBetweenEvictionRuns)
Indicates how long the eviction thread should sleep before "runs" of examining idle
connections.
|
TransactionConfigurationBuilder |
transaction() |
UnsafeConfigurationBuilder |
unsafe() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
void |
validate(GlobalConfiguration globalConfig) |
VersioningConfigurationBuilder |
versioning() |
addServer, asyncExecutorFactory, balancingStrategy, connectionPool, connectionTimeout, forceReturnValues, getRemoteStoreBuilder, hotRodWrapping, keySizeEstimate, marshaller, marshaller, protocolVersion, protocolVersion, rawValues, remoteCacheName, remoteSecurity, socketTimeout, tcpNoDelay, transportFactory, transportFactory, valueSizeEstimate
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, shared, singleton, transactional, withProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, shared, singleton, transactional, withProperties
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, encoding, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, security, simpleCache, simpleCache, sites, storeAsBinary, template, transaction, unsafe, versioning
persistence
public ConnectionPoolConfigurationBuilder exhaustedAction(ExhaustedAction exhaustedAction)
public ConnectionPoolConfigurationBuilder maxActive(int maxActive)
public ConnectionPoolConfigurationBuilder maxTotal(int maxTotal)
public ConnectionPoolConfigurationBuilder maxIdle(int maxIdle)
public ConnectionPoolConfigurationBuilder minIdle(int minIdle)
public ConnectionPoolConfigurationBuilder timeBetweenEvictionRuns(long timeBetweenEvictionRuns)
public ConnectionPoolConfigurationBuilder minEvictableIdleTime(long minEvictableIdleTime)
public ConnectionPoolConfigurationBuilder testWhileIdle(boolean testWhileIdle)
public void validate()
Builder
validate
in interface Builder<ConnectionPoolConfiguration>
public void validate(GlobalConfiguration globalConfig)
validate
in interface ConfigurationChildBuilder
validate
in class AbstractRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public ConnectionPoolConfiguration create()
Builder
create
in interface Builder<ConnectionPoolConfiguration>
public ConnectionPoolConfigurationBuilder read(ConnectionPoolConfiguration template)
Builder
read
in interface Builder<ConnectionPoolConfiguration>
template
- the configuration from which to "clone" this config if needed.public ConfigurationChildBuilder template(boolean template)
template
in interface ConfigurationChildBuilder
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
simpleCache
in interface ConfigurationChildBuilder
public boolean simpleCache()
simpleCache
in interface ConfigurationChildBuilder
public ClusteringConfigurationBuilder clustering()
clustering
in interface ConfigurationChildBuilder
public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public DataContainerConfigurationBuilder dataContainer()
dataContainer
in interface ConfigurationChildBuilder
public DeadlockDetectionConfigurationBuilder deadlockDetection()
deadlockDetection
in interface ConfigurationChildBuilder
public EncodingConfigurationBuilder encoding()
encoding
in interface ConfigurationChildBuilder
public EvictionConfigurationBuilder eviction()
eviction
in interface ConfigurationChildBuilder
public ExpirationConfigurationBuilder expiration()
expiration
in interface ConfigurationChildBuilder
public IndexingConfigurationBuilder indexing()
indexing
in interface ConfigurationChildBuilder
public InvocationBatchingConfigurationBuilder invocationBatching()
invocationBatching
in interface ConfigurationChildBuilder
public JMXStatisticsConfigurationBuilder jmxStatistics()
jmxStatistics
in interface ConfigurationChildBuilder
public PersistenceConfigurationBuilder persistence()
persistence
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public SecurityConfigurationBuilder security()
security
in interface ConfigurationChildBuilder
@Deprecated public StoreAsBinaryConfigurationBuilder storeAsBinary()
storeAsBinary
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public VersioningConfigurationBuilder versioning()
versioning
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
public CompatibilityModeConfigurationBuilder compatibility()
compatibility
in interface ConfigurationChildBuilder
public MemoryConfigurationBuilder memory()
memory
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.