public class ConnectionPool extends Pool<Connection>
| Constructor and Description |
|---|
ConnectionPool(HostAndPort hostAndPort,
JedisClientConfig clientConfig) |
ConnectionPool(HostAndPort hostAndPort,
JedisClientConfig clientConfig,
Cache clientSideCache) |
ConnectionPool(HostAndPort hostAndPort,
JedisClientConfig clientConfig,
Cache clientSideCache,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig) |
ConnectionPool(HostAndPort hostAndPort,
JedisClientConfig clientConfig,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig) |
ConnectionPool(org.apache.commons.pool2.PooledObjectFactory<Connection> factory) |
ConnectionPool(org.apache.commons.pool2.PooledObjectFactory<Connection> factory,
org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachAuthenticationListener(AuthXManager authXManager) |
void |
close() |
protected void |
detachAuthenticationListener() |
Connection |
getResource() |
addObjects, destroy, returnBrokenResource, returnResourceaddObject, borrowObject, borrowObject, borrowObject, clear, evict, getFactory, getFactoryType, getMaxIdle, getMinIdle, getNumActive, getNumIdle, getNumWaiters, invalidateObject, invalidateObject, listAllObjects, preparePool, returnObject, setConfig, setMaxIdle, setMinIdle, toStringAppendFields, usegetBlockWhenExhausted, getBorrowedCount, 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, 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, setTimeBetweenEvictionRunsMillisclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBlockWhenExhausted, 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, isClosedpublic ConnectionPool(org.apache.commons.pool2.PooledObjectFactory<Connection> factory)
public ConnectionPool(org.apache.commons.pool2.PooledObjectFactory<Connection> factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig)
public ConnectionPool(HostAndPort hostAndPort, JedisClientConfig clientConfig)
public ConnectionPool(HostAndPort hostAndPort, JedisClientConfig clientConfig, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig)
@Experimental public ConnectionPool(HostAndPort hostAndPort, JedisClientConfig clientConfig, Cache clientSideCache)
@Experimental public ConnectionPool(HostAndPort hostAndPort, JedisClientConfig clientConfig, Cache clientSideCache, org.apache.commons.pool2.impl.GenericObjectPoolConfig<Connection> poolConfig)
public Connection getResource()
getResource in class Pool<Connection>public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface org.apache.commons.pool2.ObjectPool<Connection>close in class Pool<Connection>protected void attachAuthenticationListener(AuthXManager authXManager)
protected void detachAuthenticationListener()
Copyright © 2025. All rights reserved.