クラス PoolConfig
java.lang.ObjectSE
org.springframework.ldap.pool2.factory.PoolConfig
プール構成のラッパークラス。
GenericKeyedObjectPoolConfig のインスタンスを作成できます。- 導入:
- 2.0
コンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明Get the name of the eviction policy class.@Nullable StringSEGet the base name to use for JMX naming.Get the JMX name prefix.intGet the maximum number of idle instances per key.intGet the overall maximum number of objects that can exist in this pool.intGet the maximum number of objects that can exist in this pool for a given key.longGet the maximum time to wait for an object to become available.longGet the minimum time an object may sit idle before being eligible for eviction.intGet the minimum number of idle instances per key.intGet the number of objects to examine during each eviction run.longGet the minimum time an object may sit idle before being eligible for eviction, subject to the minimum idle constraint.longGet the time between runs of the idle object evictor.booleanReturn whether to block when the pool is exhausted.booleanReturn whether waiting threads are served as if waiting in a FIFO queue.booleanReturn whether JMX is enabled for this pool.booleanisLifo()Return whether the pool acts as a LIFO queue.booleanReturn whether objects are validated before being borrowed from the pool.booleanReturn whether objects are validated after creation.booleanReturn whether objects are validated before being returned to the pool.booleanReturn whether idle objects are validated by the idle object evictor.voidsetBlockWhenExhausted(boolean blockWhenExhausted) Set whether to block when the pool is exhausted.voidsetEvictionPolicyClassName(StringSE evictionPolicyClassName) Set the name of the eviction policy class.voidsetFairness(boolean fairness) Set whether waiting threads are served as if waiting in a FIFO queue.voidsetJmxEnabled(boolean jmxEnabled) Set whether JMX is enabled for this pool.voidsetJmxNameBase(@Nullable StringSE jmxNameBase) Set the base name to use for JMX naming.voidsetJmxNamePrefix(StringSE jmxNamePrefix) Set the JMX name prefix.voidsetLifo(boolean lifo) Set whether the pool acts as a LIFO queue.voidsetMaxIdlePerKey(int maxIdlePerKey) Set the maximum number of idle instances per key.voidsetMaxTotal(int maxTotal) Set the overall maximum number of objects that can exist in this pool.voidsetMaxTotalPerKey(int maxTotalPerKey) Set the maximum number of objects that can exist in this pool for a given key.voidsetMaxWaitMillis(long maxWaitMillis) Set the maximum time to wait for an object to become available.voidsetMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis) Set the minimum time an object may sit idle before being eligible for eviction.voidsetMinIdlePerKey(int minIdlePerKey) Set the minimum number of idle instances per key.voidsetNumTestsPerEvictionRun(int numTestsPerEvictionRun) Set the number of objects to examine during each eviction run.voidsetSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis) Set the minimum time an object may sit idle before being eligible for eviction, subject to the minimum idle constraint.voidsetTestOnBorrow(boolean testOnBorrow) Set whether objects are validated before being borrowed from the pool.voidsetTestOnCreate(boolean testOnCreate) Set whether objects are validated after creation.voidsetTestOnReturn(boolean testOnReturn) Set whether objects are validated before being returned to the pool.voidsetTestWhileIdle(boolean testWhileIdle) Set whether idle objects are validated by the idle object evictor.voidsetTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis) Set the time between runs of the idle object evictor.
コンストラクターの詳細
PoolConfig
public PoolConfig()
方法の詳細
setMaxIdlePerKey
public void setMaxIdlePerKey(int maxIdlePerKey) Set the maximum number of idle instances per key.- 関連事項:
setMaxTotal
public void setMaxTotal(int maxTotal) Set the overall maximum number of objects that can exist in this pool.- 関連事項:
setMaxTotalPerKey
public void setMaxTotalPerKey(int maxTotalPerKey) Set the maximum number of objects that can exist in this pool for a given key.- 関連事項:
setMinIdlePerKey
public void setMinIdlePerKey(int minIdlePerKey) Set the minimum number of idle instances per key.- 関連事項:
setBlockWhenExhausted
public void setBlockWhenExhausted(boolean blockWhenExhausted) Set whether to block when the pool is exhausted.- 関連事項:
setEvictionPolicyClassName
Set the name of the eviction policy class.- 関連事項:
setFairness
public void setFairness(boolean fairness) Set whether waiting threads are served as if waiting in a FIFO queue.- 関連事項:
setJmxEnabled
public void setJmxEnabled(boolean jmxEnabled) Set whether JMX is enabled for this pool.- 関連事項:
setJmxNameBase
Set the base name to use for JMX naming.- 関連事項:
setJmxNamePrefix
setLifo
public void setLifo(boolean lifo) Set whether the pool acts as a LIFO queue.- 関連事項:
setMaxWaitMillis
public void setMaxWaitMillis(long maxWaitMillis) Set the maximum time to wait for an object to become available.- 関連事項:
setMinEvictableIdleTimeMillis
public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis) Set the minimum time an object may sit idle before being eligible for eviction.- 関連事項:
setNumTestsPerEvictionRun
public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun) Set the number of objects to examine during each eviction run.- 関連事項:
setSoftMinEvictableIdleTimeMillis
public void setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis) Set the minimum time an object may sit idle before being eligible for eviction, subject to the minimum idle constraint.- 関連事項:
setTestOnBorrow
public void setTestOnBorrow(boolean testOnBorrow) Set whether objects are validated before being borrowed from the pool.- 関連事項:
setTestOnCreate
public void setTestOnCreate(boolean testOnCreate) Set whether objects are validated after creation.- 関連事項:
setTestOnReturn
public void setTestOnReturn(boolean testOnReturn) Set whether objects are validated before being returned to the pool.- 関連事項:
setTestWhileIdle
public void setTestWhileIdle(boolean testWhileIdle) Set whether idle objects are validated by the idle object evictor.- 関連事項:
setTimeBetweenEvictionRunsMillis
public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis) Set the time between runs of the idle object evictor.- 関連事項:
getMaxIdlePerKey
public int getMaxIdlePerKey()Get the maximum number of idle instances per key.- 関連事項:
getMaxTotal
public int getMaxTotal()Get the overall maximum number of objects that can exist in this pool.- 関連事項:
getMaxTotalPerKey
public int getMaxTotalPerKey()Get the maximum number of objects that can exist in this pool for a given key.- 関連事項:
getMinIdlePerKey
public int getMinIdlePerKey()Get the minimum number of idle instances per key.- 関連事項:
isBlockWhenExhausted
public boolean isBlockWhenExhausted()Return whether to block when the pool is exhausted.- 関連事項:
getEvictionPolicyClassName
isFairness
public boolean isFairness()Return whether waiting threads are served as if waiting in a FIFO queue.- 関連事項:
isJmxEnabled
public boolean isJmxEnabled()Return whether JMX is enabled for this pool.- 関連事項:
getJmxNameBase
getJmxNamePrefix
isLifo
public boolean isLifo()Return whether the pool acts as a LIFO queue.- 関連事項:
getMaxWaitMillis
public long getMaxWaitMillis()Get the maximum time to wait for an object to become available.- 関連事項:
getMinEvictableIdleTimeMillis
public long getMinEvictableIdleTimeMillis()Get the minimum time an object may sit idle before being eligible for eviction.- 関連事項:
getNumTestsPerEvictionRun
public int getNumTestsPerEvictionRun()Get the number of objects to examine during each eviction run.- 関連事項:
getSoftMinEvictableIdleTimeMillis
public long getSoftMinEvictableIdleTimeMillis()Get the minimum time an object may sit idle before being eligible for eviction, subject to the minimum idle constraint.- 関連事項:
isTestOnBorrow
public boolean isTestOnBorrow()Return whether objects are validated before being borrowed from the pool.- 関連事項:
isTestOnCreate
public boolean isTestOnCreate()Return whether objects are validated after creation.- 関連事項:
isTestOnReturn
public boolean isTestOnReturn()Return whether objects are validated before being returned to the pool.- 関連事項:
isTestWhileIdle
public boolean isTestWhileIdle()Return whether idle objects are validated by the idle object evictor.- 関連事項:
getTimeBetweenEvictionRunsMillis
public long getTimeBetweenEvictionRunsMillis()Get the time between runs of the idle object evictor.- 関連事項: