Package | Description |
---|---|
org.voovan.http.client | |
org.voovan.tools.pool |
Modifier and Type | Method and Description |
---|---|
ObjectPool<HttpClient> |
HttpClientPool.getPool() |
Modifier and Type | Method and Description |
---|---|
ObjectPool<T> |
ObjectPool.aliveTime(long aliveTime)
设置对象池的对象存活时间
|
ObjectPool<T> |
ObjectPool.autoRefreshOnGet(boolean autoRefreshOnGet) |
ObjectPool<T> |
ObjectPool.create()
创建ObjectPool
|
ObjectPool<T> |
ObjectPool.destory(Function<T,Boolean> destory)
设置对象销毁函数
在对象被销毁前工作
|
ObjectPool<T> |
ObjectPool.interval(int interval) |
ObjectPool<T> |
ObjectPool.maxSize(int maxSize) |
ObjectPool<T> |
ObjectPool.minSize(int minSize) |
ObjectPool<T> |
ObjectPool.supplier(Supplier<T> supplier)
设置对象构造函数
对象被构造是用的函数
|
ObjectPool<T> |
ObjectPool.validator(Function<T,Boolean> validator)
设置验证器
在获取对象时验证
|
Constructor and Description |
---|
InnerObject(ObjectPool objectCachedPool,
long id,
T object) |
Copyright © 2020 Voovan. All rights reserved.