Class ObjectPoolConfiguration


  • public final class ObjectPoolConfiguration
    extends Object
    Configuration for pooling objects.
    • Constructor Detail

      • ObjectPoolConfiguration

        public ObjectPoolConfiguration()
    • Method Detail

      • getMaxObjects

        public int getMaxObjects()
        Get the set number of maximum objects (idle+active).
      • setMaxObjects

        public void setMaxObjects​(int maxObjects)
        Sets the maximum number of objects (idle+active).
      • getMaxIdle

        public int getMaxIdle()
        Get the maximum number of idle objects.
      • setMaxIdle

        public void setMaxIdle​(int maxIdle)
        Sets the maximum number of objects that can sit idle in the pool at any time.
      • getMaxWait

        public long getMaxWait()
        Max time to wait if the pool is waiting for a free object to become available before failing. Zero means don't wait.
      • setMaxWait

        public void setMaxWait​(long maxWait)
        Max time to wait if the pool is waiting for a free object to become available before failing. Zero means don't wait.
      • getMinEvictableIdleTimeMillis

        public long getMinEvictableIdleTimeMillis()
        Minimum time to wait before evicting an idle object. Zero means don't wait.
      • setMinEvictableIdleTimeMillis

        public void setMinEvictableIdleTimeMillis​(long minEvictableIdleTimeMillis)
        Minimum time to wait before evicting an idle object. Zero means don't wait.
      • getMaxIdleTimeMillis

        public long getMaxIdleTimeMillis()
        Maximum time that an idle object will be kept in the pool (in milliseconds). Connectors will not be re-used if they are kept idle in the pool for longer than this interval. Zero means no time limitation.
      • setMaxIdleTimeMillis

        public void setMaxIdleTimeMillis​(long maxIdleTimeMillis)
        Maximum time that an idle object will be kept in the pool (in milliseconds). Connectors will not be re-used if they are kept idle in the pool for longer than this interval. Zero means no time limitation.
      • getMinIdle

        public int getMinIdle()
        Minimum number of idle objects.
      • setMinIdle

        public void setMinIdle​(int minIdle)
        Minimum number of idle objects.
      • validate

        public void validate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object