java.lang.Object
org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl.EvictionConfig

public class EvictionConfig extends 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
  • Field Details

    • idleEvictTime

      private final long idleEvictTime
    • idleSoftEvictTime

      private final long idleSoftEvictTime
    • minIdle

      private final int minIdle
  • Constructor Details

  • Method Details

    • getIdleEvictTime

      public long getIdleEvictTime()
      Obtain 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
    • getIdleSoftEvictTime

      public long getIdleSoftEvictTime()
      Obtain 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()
      Obtain 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 String toString()
      Overrides:
      toString in class Object
      Since:
      2.4