|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.pool2.impl.EvictionConfig
public class EvictionConfig
This class is used by pool implementations to pass configuration information
to EvictionPolicy
instances. The EvictionPolicy
may also have
its own specific configuration attributes.
This class is immutable and thread-safe.
Constructor Summary | |
---|---|
EvictionConfig(long poolIdleEvictTime,
long poolIdleSoftEvictTime,
int minIdle)
Create a new eviction configuration with the specified parameters. |
Method Summary | |
---|---|
long |
getIdleEvictTime()
Obtain the idleEvictTime for this eviction configuration
instance. |
long |
getIdleSoftEvictTime()
Obtain the idleSoftEvictTime for this eviction configuration
instance. |
int |
getMinIdle()
Obtain the minIdle for this eviction configuration instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvictionConfig(long poolIdleEvictTime, long poolIdleSoftEvictTime, int minIdle)
poolIdleEvictTime
- Expected to be provided by
BaseGenericObjectPool.getMinEvictableIdleTimeMillis()
poolIdleSoftEvictTime
- Expected to be provided by
BaseGenericObjectPool.getSoftMinEvictableIdleTimeMillis()
minIdle
- Expected to be provided by
GenericObjectPool.getMinIdle()
or
GenericKeyedObjectPool.getMinIdlePerKey()
Method Detail |
---|
public long getIdleEvictTime()
idleEvictTime
for this eviction configuration
instance.
How the evictor behaves based on this value will be determined by the
configured EvictionPolicy
.
idleEvictTime
in millisecondspublic long getIdleSoftEvictTime()
idleSoftEvictTime
for this eviction configuration
instance.
How the evictor behaves based on this value will be determined by the
configured EvictionPolicy
.
public int getMinIdle()
minIdle
for this eviction configuration instance.
How the evictor behaves based on this value will be determined by the
configured EvictionPolicy
.
minIdle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |