Class FdfsConnectionPool

java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.impl.BaseGenericObjectPool<T>
org.apache.commons.pool2.impl.GenericKeyedObjectPool<InetSocketAddress,Connection>
com.github.tobato.fastdfs.domain.conn.FdfsConnectionPool
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean<InetSocketAddress>, org.apache.commons.pool2.KeyedObjectPool<InetSocketAddress,Connection>, org.apache.commons.pool2.UsageTracking<Connection>

@Component public class FdfsConnectionPool extends org.apache.commons.pool2.impl.GenericKeyedObjectPool<InetSocketAddress,Connection>
定义Fdfs连接池对象

 定义了对象池要实现的功能,对一个地址进行池化Map Pool
 
Author:
tobato
  • Field Summary

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

    abandonedConfig, MEAN_TIMING_STATS_CACHE_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    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)
    默认构造函数
  • Method Summary

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

    addObject, borrowObject, borrowObject, clear, clear, clear, clearOldest, close, evict, getFactory, getKeys, getMaxIdlePerKey, getMaxTotalPerKey, getMinIdlePerKey, getNumActive, getNumActive, getNumActivePerKey, getNumIdle, getNumIdle, getNumWaiters, getNumWaitersByKey, invalidateObject, invalidateObject, listAllObjects, preparePool, returnObject, setConfig, setMaxIdlePerKey, setMaxTotalPerKey, setMinIdlePerKey, toStringAppendFields, use

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

    getBlockWhenExhausted, 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, 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.GenericKeyedObjectPoolMXBean

    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

    Methods inherited from interface org.apache.commons.pool2.KeyedObjectPool

    addObjects, addObjects
  • Constructor Details

    • FdfsConnectionPool

      @Autowired public FdfsConnectionPool(org.apache.commons.pool2.KeyedPooledObjectFactory<InetSocketAddress,Connection> factory, org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig config)
      默认构造函数
      Parameters:
      factory -
      config -
    • FdfsConnectionPool

      public FdfsConnectionPool(org.apache.commons.pool2.KeyedPooledObjectFactory<InetSocketAddress,Connection> factory)
      默认构造函数
      Parameters:
      factory -