Class EvictionConfig


  • public class EvictionConfig
    extends java.lang.Object
    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.

    Since:
    2.0
    • Method Detail

      • getIdleEvictDuration

        public java.time.Duration getIdleEvictDuration()
        Gets the idleEvictTime for 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
      • getIdleEvictTime

        @Deprecated
        public long getIdleEvictTime()
        Deprecated.
        Gets the idleEvictTime for this eviction configuration instance.

        How the evictor behaves based on this value will be determined by the configured EvictionPolicy.

        Returns:
        The idleEvictTime in milliseconds
      • getIdleEvictTimeDuration

        @Deprecated
        public java.time.Duration getIdleEvictTimeDuration()
        Deprecated.
        Gets the idleEvictTime for 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
      • getIdleSoftEvictDuration

        public java.time.Duration getIdleSoftEvictDuration()
        Gets the idleSoftEvictTime for 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
      • getIdleSoftEvictTime

        @Deprecated
        public long getIdleSoftEvictTime()
        Deprecated.
        Gets the idleSoftEvictTime for 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
      • getIdleSoftEvictTimeDuration

        @Deprecated
        public java.time.Duration getIdleSoftEvictTimeDuration()
        Deprecated.
        Gets the idleSoftEvictTime for 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
      • getMinIdle

        public int getMinIdle()
        Gets the minIdle for this eviction configuration instance.

        How the evictor behaves based on this value will be determined by the configured EvictionPolicy.

        Returns:
        The minIdle
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Since:
        2.4