クラス PoolConfig

java.lang.ObjectSE
org.springframework.ldap.pool2.factory.PoolConfig

public class PoolConfig extends ObjectSE
プール構成のラッパークラス。GenericKeyedObjectPoolConfig のインスタンスを作成できます。
導入:
2.0
  • コンストラクターの詳細

    • PoolConfig

      public PoolConfig()
  • 方法の詳細

    • setMaxIdlePerKey

      public void setMaxIdlePerKey(int maxIdlePerKey)
      Set the maximum number of idle instances per key.
      関連事項:
      • GenericKeyedObjectPoolConfig.setMaxIdlePerKey(int)
    • setMaxTotal

      public void setMaxTotal(int maxTotal)
      Set the overall maximum number of objects that can exist in this pool.
      関連事項:
      • GenericKeyedObjectPoolConfig.setMaxTotal(int)
    • setMaxTotalPerKey

      public void setMaxTotalPerKey(int maxTotalPerKey)
      Set the maximum number of objects that can exist in this pool for a given key.
      関連事項:
      • GenericKeyedObjectPoolConfig.setMaxTotalPerKey(int)
    • setMinIdlePerKey

      public void setMinIdlePerKey(int minIdlePerKey)
      Set the minimum number of idle instances per key.
      関連事項:
      • GenericKeyedObjectPoolConfig.setMinIdlePerKey(int)
    • setBlockWhenExhausted

      public void setBlockWhenExhausted(boolean blockWhenExhausted)
      Set whether to block when the pool is exhausted.
      関連事項:
      • BaseObjectPoolConfig.setBlockWhenExhausted(boolean)
    • setEvictionPolicyClassName

      public void setEvictionPolicyClassName(StringSE evictionPolicyClassName)
      Set the name of the eviction policy class.
      関連事項:
      • BaseObjectPoolConfig.setEvictionPolicyClassName(String)
    • setFairness

      public void setFairness(boolean fairness)
      Set whether waiting threads are served as if waiting in a FIFO queue.
      関連事項:
      • BaseObjectPoolConfig.setFairness(boolean)
    • setJmxEnabled

      public void setJmxEnabled(boolean jmxEnabled)
      Set whether JMX is enabled for this pool.
      関連事項:
      • BaseObjectPoolConfig.setJmxEnabled(boolean)
    • setJmxNameBase

      public void setJmxNameBase(@Nullable StringSE jmxNameBase)
      Set the base name to use for JMX naming.
      関連事項:
      • BaseObjectPoolConfig.setJmxNameBase(String)
    • setJmxNamePrefix

      public void setJmxNamePrefix(StringSE jmxNamePrefix)
      Set the JMX name prefix.
      関連事項:
      • BaseObjectPoolConfig.setJmxNamePrefix(String)
    • setLifo

      public void setLifo(boolean lifo)
      Set whether the pool acts as a LIFO queue.
      関連事項:
      • BaseObjectPoolConfig.setLifo(boolean)
    • setMaxWaitMillis

      public void setMaxWaitMillis(long maxWaitMillis)
      Set the maximum time to wait for an object to become available.
      関連事項:
      • BaseObjectPoolConfig.setMaxWaitMillis(long)
    • setMinEvictableIdleTimeMillis

      public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
      Set the minimum time an object may sit idle before being eligible for eviction.
      関連事項:
      • BaseObjectPoolConfig.setMinEvictableIdleTimeMillis(long)
    • setNumTestsPerEvictionRun

      public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun)
      Set the number of objects to examine during each eviction run.
      関連事項:
      • BaseObjectPoolConfig.setNumTestsPerEvictionRun(int)
    • setSoftMinEvictableIdleTimeMillis

      public void setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis)
      Set the minimum time an object may sit idle before being eligible for eviction, subject to the minimum idle constraint.
      関連事項:
      • BaseObjectPoolConfig.setSoftMinEvictableIdleTimeMillis(long)
    • setTestOnBorrow

      public void setTestOnBorrow(boolean testOnBorrow)
      Set whether objects are validated before being borrowed from the pool.
      関連事項:
      • BaseObjectPoolConfig.setTestOnBorrow(boolean)
    • setTestOnCreate

      public void setTestOnCreate(boolean testOnCreate)
      Set whether objects are validated after creation.
      関連事項:
      • BaseObjectPoolConfig.setTestOnCreate(boolean)
    • setTestOnReturn

      public void setTestOnReturn(boolean testOnReturn)
      Set whether objects are validated before being returned to the pool.
      関連事項:
      • BaseObjectPoolConfig.setTestOnReturn(boolean)
    • setTestWhileIdle

      public void setTestWhileIdle(boolean testWhileIdle)
      Set whether idle objects are validated by the idle object evictor.
      関連事項:
      • BaseObjectPoolConfig.setTestWhileIdle(boolean)
    • setTimeBetweenEvictionRunsMillis

      public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
      Set the time between runs of the idle object evictor.
      関連事項:
      • BaseObjectPoolConfig.setTimeBetweenEvictionRunsMillis(long)
    • getMaxIdlePerKey

      public int getMaxIdlePerKey()
      Get the maximum number of idle instances per key.
      関連事項:
      • GenericKeyedObjectPoolConfig.getMaxIdlePerKey()
    • getMaxTotal

      public int getMaxTotal()
      Get the overall maximum number of objects that can exist in this pool.
      関連事項:
      • GenericKeyedObjectPoolConfig.getMaxTotal()
    • getMaxTotalPerKey

      public int getMaxTotalPerKey()
      Get the maximum number of objects that can exist in this pool for a given key.
      関連事項:
      • GenericKeyedObjectPoolConfig.getMaxTotalPerKey()
    • getMinIdlePerKey

      public int getMinIdlePerKey()
      Get the minimum number of idle instances per key.
      関連事項:
      • GenericKeyedObjectPoolConfig.getMinIdlePerKey()
    • isBlockWhenExhausted

      public boolean isBlockWhenExhausted()
      Return whether to block when the pool is exhausted.
      関連事項:
      • BaseObjectPoolConfig.getBlockWhenExhausted()
    • getEvictionPolicyClassName

      public StringSE getEvictionPolicyClassName()
      Get the name of the eviction policy class.
      関連事項:
      • BaseObjectPoolConfig.getEvictionPolicyClassName()
    • isFairness

      public boolean isFairness()
      Return whether waiting threads are served as if waiting in a FIFO queue.
      関連事項:
      • BaseObjectPoolConfig.getFairness()
    • isJmxEnabled

      public boolean isJmxEnabled()
      Return whether JMX is enabled for this pool.
      関連事項:
      • BaseObjectPoolConfig.getJmxEnabled()
    • getJmxNameBase

      public @Nullable StringSE getJmxNameBase()
      Get the base name to use for JMX naming.
      関連事項:
      • BaseObjectPoolConfig.getJmxNameBase()
    • getJmxNamePrefix

      public StringSE getJmxNamePrefix()
      Get the JMX name prefix.
      関連事項:
      • BaseObjectPoolConfig.getJmxNamePrefix()
    • isLifo

      public boolean isLifo()
      Return whether the pool acts as a LIFO queue.
      関連事項:
      • BaseObjectPoolConfig.getLifo()
    • getMaxWaitMillis

      public long getMaxWaitMillis()
      Get the maximum time to wait for an object to become available.
      関連事項:
      • BaseObjectPoolConfig.getMaxWaitMillis()
    • getMinEvictableIdleTimeMillis

      public long getMinEvictableIdleTimeMillis()
      Get the minimum time an object may sit idle before being eligible for eviction.
      関連事項:
      • BaseObjectPoolConfig.getMinEvictableIdleTimeMillis()
    • getNumTestsPerEvictionRun

      public int getNumTestsPerEvictionRun()
      Get the number of objects to examine during each eviction run.
      関連事項:
      • BaseObjectPoolConfig.getNumTestsPerEvictionRun()
    • getSoftMinEvictableIdleTimeMillis

      public long getSoftMinEvictableIdleTimeMillis()
      Get the minimum time an object may sit idle before being eligible for eviction, subject to the minimum idle constraint.
      関連事項:
      • BaseObjectPoolConfig.getSoftMinEvictableIdleTimeMillis()
    • isTestOnBorrow

      public boolean isTestOnBorrow()
      Return whether objects are validated before being borrowed from the pool.
      関連事項:
      • BaseObjectPoolConfig.getTestOnBorrow()
    • isTestOnCreate

      public boolean isTestOnCreate()
      Return whether objects are validated after creation.
      関連事項:
      • BaseObjectPoolConfig.getTestOnCreate()
    • isTestOnReturn

      public boolean isTestOnReturn()
      Return whether objects are validated before being returned to the pool.
      関連事項:
      • BaseObjectPoolConfig.getTestOnReturn()
    • isTestWhileIdle

      public boolean isTestWhileIdle()
      Return whether idle objects are validated by the idle object evictor.
      関連事項:
      • BaseObjectPoolConfig.getTestWhileIdle()
    • getTimeBetweenEvictionRunsMillis

      public long getTimeBetweenEvictionRunsMillis()
      Get the time between runs of the idle object evictor.
      関連事項:
      • BaseObjectPoolConfig.getTimeBetweenEvictionRunsMillis()