EvictionPolicy instances. The EvictionPolicy may also have
its own specific configuration attributes.
This class is immutable and thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| private final Duration | |
| private final Duration | |
| private static final Duration | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | EvictionConfig(final Duration
Expected to be provided by
idleEvictDuration, final Duration BaseGenericObjectPool#getMinEvictableIdleDuration()Expected to be provided by
idleSoftEvictDuration, final int BaseGenericObjectPool#getSoftMinEvictableIdleDuration()Expected to be provided by
minIdle)GenericObjectPool#getMinIdle() or
GenericKeyedObjectPool#getMinIdlePerKey()Creates a new eviction configuration with the specified parameters. |
| public | EvictionConfig(final long
Expected to be provided by
poolIdleEvictMillis, final long BaseGenericObjectPool#getMinEvictableIdleDuration()Expected to be provided by
poolIdleSoftEvictMillis, final int BaseGenericObjectPool#getSoftMinEvictableIdleDuration()Expected to be provided by
minIdle)GenericObjectPool#getMinIdle() or
GenericKeyedObjectPool#getMinIdlePerKey()
Deprecated
Use
Creates a new eviction configuration with the specified parameters.
EvictionConfig(Duration, Duration, int).
|
| Modifier and Type | Method and Description |
|---|---|
| public Duration | Returns: TheidleEvictTime.Gets the |
| public long | Returns: TheidleEvictTime in milliseconds
Deprecated
Use
Gets the getIdleEvictDuration().
idleEvictTime for this eviction configuration
instance.
|
| public Duration | Returns: TheidleEvictTime.
Deprecated
Use
Gets the getIdleEvictDuration().
idleEvictTime for this eviction configuration
instance.
|
| public Duration | Returns: The (@code idleSoftEvictTime} in millisecondsGets the |
| public long | Returns: The (@code idleSoftEvictTime} in milliseconds
Deprecated
Use
Gets the getIdleSoftEvictDuration().
idleSoftEvictTime for this eviction configuration
instance.
|
| public Duration | Returns: The (@code idleSoftEvictTime} in milliseconds
Deprecated
Use
Gets the getIdleSoftEvictDuration().
idleSoftEvictTime for this eviction configuration
instance.
|
| public int | |
| public String |
| idleEvictDuration | back to summary |
|---|---|
| private final Duration idleEvictDuration | |
| idleSoftEvictDuration | back to summary |
|---|---|
| private final Duration idleSoftEvictDuration | |
| MAX_DURATION | back to summary |
|---|---|
| private static final Duration MAX_DURATION | |
| minIdle | back to summary |
|---|---|
| private final int minIdle | |
| EvictionConfig | back to summary |
|---|---|
| public EvictionConfig(final Duration idleEvictDuration, final Duration idleSoftEvictDuration, final int minIdle) Creates a new eviction configuration with the specified parameters. Instances are immutable.
| |
| EvictionConfig | back to summary |
|---|---|
| public EvictionConfig(final long poolIdleEvictMillis, final long poolIdleSoftEvictMillis, final int minIdle)
Deprecated Creates a new eviction configuration with the specified parameters. Instances are immutable.
| |
| getIdleEvictDuration | back to summary |
|---|---|
| public Duration getIdleEvictDuration() Gets the
How the evictor behaves based on this value will be determined by the
configured
| |
| getIdleEvictTime | back to summary |
|---|---|
| public long getIdleEvictTime()
Deprecated Gets the
How the evictor behaves based on this value will be determined by the
configured
| |
| getIdleEvictTimeDuration | back to summary |
|---|---|
| public Duration getIdleEvictTimeDuration()
Deprecated Gets the
How the evictor behaves based on this value will be determined by the
configured
| |
| getIdleSoftEvictDuration | back to summary |
|---|---|
| public Duration getIdleSoftEvictDuration() Gets the
How the evictor behaves based on this value will be determined by the
configured
| |
| getIdleSoftEvictTime | back to summary |
|---|---|
| public long getIdleSoftEvictTime()
Deprecated Gets the
How the evictor behaves based on this value will be determined by the
configured
| |
| getIdleSoftEvictTimeDuration | back to summary |
|---|---|
| public Duration getIdleSoftEvictTimeDuration()
Deprecated Gets the
How the evictor behaves based on this value will be determined by the
configured
| |
| getMinIdle | back to summary |
|---|---|
| public int getMinIdle() Gets the
How the evictor behaves based on this value will be determined by the
configured
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |