public class TransportKeyedObjectPool extends org.apache.commons.pool2.impl.GenericKeyedObjectPool<ThriftServerNode,org.apache.thrift.transport.TTransport>
| 构造器和说明 |
|---|
TransportKeyedObjectPool(org.apache.commons.pool2.KeyedPooledObjectFactory factory) |
TransportKeyedObjectPool(org.apache.commons.pool2.KeyedPooledObjectFactory factory,
org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.thrift.transport.TTransport |
borrowObject(ThriftServerNode key) |
void |
returnObject(ThriftServerNode key,
org.apache.thrift.transport.TTransport obj) |
addObject, borrowObject, clear, clear, clearOldest, close, evict, getFactory, getMaxIdlePerKey, getMaxTotalPerKey, getMinIdlePerKey, getNumActive, getNumActive, getNumActivePerKey, getNumIdle, getNumIdle, getNumWaiters, getNumWaitersByKey, invalidateObject, listAllObjects, preparePool, 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, markReturningState, setBlockWhenExhausted, setConfig, setEvictionPolicy, setEvictionPolicyClassName, 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, isClosedpublic TransportKeyedObjectPool(org.apache.commons.pool2.KeyedPooledObjectFactory factory)
public TransportKeyedObjectPool(org.apache.commons.pool2.KeyedPooledObjectFactory factory,
org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig config)
public org.apache.thrift.transport.TTransport borrowObject(ThriftServerNode key) throws Exception
borrowObject 在接口中 org.apache.commons.pool2.KeyedObjectPool<ThriftServerNode,org.apache.thrift.transport.TTransport>borrowObject 在类中 org.apache.commons.pool2.impl.GenericKeyedObjectPool<ThriftServerNode,org.apache.thrift.transport.TTransport>Exceptionpublic void returnObject(ThriftServerNode key, org.apache.thrift.transport.TTransport obj)
returnObject 在接口中 org.apache.commons.pool2.KeyedObjectPool<ThriftServerNode,org.apache.thrift.transport.TTransport>returnObject 在类中 org.apache.commons.pool2.impl.GenericKeyedObjectPool<ThriftServerNode,org.apache.thrift.transport.TTransport>Copyright © 2021. All rights reserved.