Class EvictionConfig
EvictionPolicy instances. The EvictionPolicy may also have
 its own specific configuration attributes.
 This class is immutable and thread-safe.
- Since:
- 2.0
- 
Constructor SummaryConstructorsConstructorDescriptionEvictionConfig(long poolIdleEvictMillis, long poolIdleSoftEvictMillis, int minIdle) Deprecated.EvictionConfig(Duration idleEvictDuration, Duration idleSoftEvictDuration, int minIdle) Creates a new eviction configuration with the specified parameters.
- 
Method SummaryModifier and TypeMethodDescriptionGets theidleEvictTimefor this eviction configuration instance.longDeprecated.Deprecated.Gets theidleSoftEvictTimefor this eviction configuration instance.longDeprecated.Deprecated.intGets theminIdlefor this eviction configuration instance.toString()
- 
Constructor Details- 
EvictionConfigCreates a new eviction configuration with the specified parameters. Instances are immutable.- Parameters:
- idleEvictDuration- Expected to be provided by- BaseGenericObjectPool.getMinEvictableIdleDuration()
- idleSoftEvictDuration- Expected to be provided by- BaseGenericObjectPool.getSoftMinEvictableIdleDuration()
- minIdle- Expected to be provided by- GenericObjectPool.getMinIdle()or- GenericKeyedObjectPool.getMinIdlePerKey()
- Since:
- 2.10.0
 
- 
EvictionConfig@Deprecated public EvictionConfig(long poolIdleEvictMillis, long poolIdleSoftEvictMillis, int minIdle) Deprecated.Creates a new eviction configuration with the specified parameters. Instances are immutable.- Parameters:
- poolIdleEvictMillis- Expected to be provided by- BaseGenericObjectPool.getMinEvictableIdleDuration()
- poolIdleSoftEvictMillis- Expected to be provided by- BaseGenericObjectPool.getSoftMinEvictableIdleDuration()
- minIdle- Expected to be provided by- GenericObjectPool.getMinIdle()or- GenericKeyedObjectPool.getMinIdlePerKey()
 
 
- 
- 
Method Details- 
getIdleEvictDurationGets theidleEvictTimefor this eviction configuration instance.How the evictor behaves based on this value will be determined by the configured EvictionPolicy.- Returns:
- The idleEvictTime.
- Since:
- 2.11.0
 
- 
getIdleEvictTimeDeprecated.Gets theidleEvictTimefor this eviction configuration instance.How the evictor behaves based on this value will be determined by the configured EvictionPolicy.- Returns:
- The idleEvictTimein milliseconds
 
- 
getIdleEvictTimeDurationDeprecated.Gets theidleEvictTimefor this eviction configuration instance.How the evictor behaves based on this value will be determined by the configured EvictionPolicy.- Returns:
- The idleEvictTime.
- Since:
- 2.10.0
 
- 
getIdleSoftEvictDurationGets theidleSoftEvictTimefor this eviction configuration instance.How the evictor behaves based on this value will be determined by the configured EvictionPolicy.- Returns:
- The (@code idleSoftEvictTime} in milliseconds
- Since:
- 2.11.0
 
- 
getIdleSoftEvictTimeDeprecated.Gets theidleSoftEvictTimefor this eviction configuration instance.How the evictor behaves based on this value will be determined by the configured EvictionPolicy.- Returns:
- The (@code idleSoftEvictTime} in milliseconds
 
- 
getIdleSoftEvictTimeDurationDeprecated.Gets theidleSoftEvictTimefor this eviction configuration instance.How the evictor behaves based on this value will be determined by the configured EvictionPolicy.- Returns:
- The (@code idleSoftEvictTime} in milliseconds
 
- 
getMinIdlepublic int getMinIdle()Gets theminIdlefor this eviction configuration instance.How the evictor behaves based on this value will be determined by the configured EvictionPolicy.- Returns:
- The minIdle
 
- 
toString
 
- 
EvictionConfig(Duration, Duration, int).