Class ConnectionPool

java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.impl.BaseGenericObjectPool<Connection>
org.apache.commons.pool2.impl.GenericObjectPool<Connection>
redis.clients.jedis.util.Pool<Connection>
redis.clients.jedis.ConnectionPool
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.commons.pool2.impl.GenericObjectPoolMXBean, org.apache.commons.pool2.ObjectPool<Connection>, org.apache.commons.pool2.UsageTracking<Connection>

public class ConnectionPool extends Pool<Connection>
  • Field Summary

    Fields inherited from class org.apache.commons.pool2.impl.BaseGenericObjectPool

    abandonedConfig, MEAN_TIMING_STATS_CACHE_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConnectionPool(org.apache.commons.pool2.PooledObjectFactory<Connection> factory)
     
    ConnectionPool(org.apache.commons.pool2.PooledObjectFactory<Connection> factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig)
     
    ConnectionPool(HostAndPort hostAndPort, JedisClientConfig clientConfig)
     
    ConnectionPool(HostAndPort hostAndPort, JedisClientConfig clientConfig, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class redis.clients.jedis.util.Pool

    addObjects, close, destroy, returnBrokenResource, returnResource

    Methods inherited from class org.apache.commons.pool2.impl.GenericObjectPool

    addObject, borrowObject, borrowObject, borrowObject, clear, evict, getFactory, getFactoryType, getMaxIdle, getMinIdle, getNumActive, getNumIdle, getNumWaiters, invalidateObject, invalidateObject, listAllObjects, preparePool, returnObject, setConfig, setMaxIdle, setMinIdle, toStringAppendFields, use

    Methods inherited from class org.apache.commons.pool2.impl.BaseGenericObjectPool

    getBlockWhenExhausted, getBorrowedCount, getCollectDetailedStatistics, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getDurationBetweenEvictionRuns, getEvictionPolicy, getEvictionPolicyClassName, getEvictorShutdownTimeout, getEvictorShutdownTimeoutDuration, getEvictorShutdownTimeoutMillis, getFairness, getJmxName, getLifo, getLogAbandoned, getMaxBorrowWaitDuration, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitDuration, getMaxWaitMillis, getMeanActiveDuration, getMeanActiveTimeMillis, getMeanBorrowWaitDuration, getMeanBorrowWaitTimeMillis, getMeanIdleDuration, getMeanIdleTimeMillis, getMessageStatistics, getMinEvictableIdleDuration, getMinEvictableIdleTime, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, getRemoveAbandonedTimeoutDuration, getReturnedCount, getSoftMinEvictableIdleDuration, getSoftMinEvictableIdleTime, getSoftMinEvictableIdleTimeMillis, getSwallowedExceptionListener, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRuns, getTimeBetweenEvictionRunsMillis, isAbandonedConfig, isClosed, markReturningState, setAbandonedConfig, setBlockWhenExhausted, setCollectDetailedStatistics, setConfig, setDurationBetweenEvictionRuns, setEvictionPolicy, setEvictionPolicyClassName, setEvictionPolicyClassName, setEvictorShutdownTimeout, setEvictorShutdownTimeoutMillis, setLifo, setMaxTotal, setMaxWait, setMaxWaitMillis, setMessagesStatistics, setMinEvictableIdle, setMinEvictableIdleDuration, setMinEvictableIdleTime, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setSoftMinEvictableIdle, setSoftMinEvictableIdleDuration, setSoftMinEvictableIdleTime, setSoftMinEvictableIdleTimeMillis, setSwallowedExceptionListener, setTestOnBorrow, setTestOnCreate, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRuns, setTimeBetweenEvictionRunsMillis

    Methods inherited from class org.apache.commons.pool2.BaseObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean

    getBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getFairness, getLifo, getLogAbandoned, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, getReturnedCount, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isAbandonedConfig, isClosed
  • Constructor Details

    • ConnectionPool

      public ConnectionPool(HostAndPort hostAndPort, JedisClientConfig clientConfig)
    • ConnectionPool

      public ConnectionPool(org.apache.commons.pool2.PooledObjectFactory<Connection> factory)
    • ConnectionPool

      public ConnectionPool(HostAndPort hostAndPort, JedisClientConfig clientConfig, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig)
    • ConnectionPool

      public ConnectionPool(org.apache.commons.pool2.PooledObjectFactory<Connection> factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig)
  • Method Details