@Component public class FdfsConnectionPool extends org.apache.commons.pool2.impl.GenericKeyedObjectPool<InetSocketAddress,Connection>
定义了对象池要实现的功能,对一个地址进行池化Map Pool
| 构造器和说明 |
|---|
FdfsConnectionPool(org.apache.commons.pool2.KeyedPooledObjectFactory<InetSocketAddress,Connection> factory)
默认构造函数
|
FdfsConnectionPool(org.apache.commons.pool2.KeyedPooledObjectFactory<InetSocketAddress,Connection> factory,
org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig config)
默认构造函数
|
addObject, borrowObject, borrowObject, clear, clear, clearOldest, close, evict, getFactory, getMaxIdlePerKey, getMaxTotalPerKey, getMinIdlePerKey, getNumActive, getNumActive, getNumActivePerKey, getNumIdle, getNumIdle, getNumWaiters, getNumWaitersByKey, invalidateObject, listAllObjects, preparePool, returnObject, setConfig, setMaxIdlePerKey, setMaxTotalPerKey, setMinIdlePerKey, toStringAppendFieldsgetBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getEvictionPolicy, getEvictionPolicyClassName, getEvictorShutdownTimeoutMillis, getFairness, getJmxName, getLifo, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getReturnedCount, getSoftMinEvictableIdleTimeMillis, getSwallowedExceptionListener, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isClosed, setBlockWhenExhausted, setEvictionPolicyClassName, setEvictorShutdownTimeoutMillis, setLifo, setMaxTotal, setMaxWaitMillis, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, setSwallowedExceptionListener, setTestOnBorrow, setTestOnCreate, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillisclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getFairness, getLifo, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getReturnedCount, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isClosed@Autowired public FdfsConnectionPool(org.apache.commons.pool2.KeyedPooledObjectFactory<InetSocketAddress,Connection> factory, org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig config)
factory - config - public FdfsConnectionPool(org.apache.commons.pool2.KeyedPooledObjectFactory<InetSocketAddress,Connection> factory)
factory - Copyright © 2018. All rights reserved.