| Package | Description |
|---|---|
| net.csdn.modules.thrift.pool |
| Modifier and Type | Method and Description |
|---|---|
BaseObjectPool.Builder<K,V> |
BaseObjectPool.Builder.borrowValidation(boolean borrowValidation)
Set whether this pool should validate the object by
PoolableObjectFactory.validateObject(K, V) before returning a borrowed object to the user
Default is false. |
BaseObjectPool.Builder<K,V> |
BaseObjectPool.Builder.disposable(boolean disposable)
Set disposable property
If this pool is bounded and doesn't have idle objects any more, temporary object will be returned to the user if
disposable is true. |
BaseObjectPool.Builder<K,V> |
BaseObjectPool.Builder.keepAliveTimeoutInSecs(long keepAliveTimeoutInSecs)
Set the KeepAliveTimeout of this pool
This pool will schedule
EvictionTask with this interval. |
BaseObjectPool.Builder<K,V> |
BaseObjectPool.Builder.max(int max)
Set maximum size of this pool
Default is unbounded as
Integer.MAX_VALUE. |
BaseObjectPool.Builder<K,V> |
BaseObjectPool.Builder.min(int min)
Set minimum size of this pool
Default is 5.
|
BaseObjectPool.Builder<K,V> |
BaseObjectPool.Builder.returnValidation(boolean returnValidation)
Set whether this pool should validate the object by
PoolableObjectFactory.validateObject(K, V) before returning a borrowed object to the pool
Default is false. |
Copyright © 2020. All rights reserved.