Pools.SimplePool
public static class Pools.SimplePool
extends Object
implements Pool<T>
Known Direct Subclasses
|
简单(非同步)的对象池。
摘要(Summary)
公共方法(Public methods) |
T |
acquire() |
boolean |
release(T instance) 将实例释放到池中。 |
Public constructors
Pools.SimplePool
Pools.SimplePool (int maxPoolSize)
创建一个新的实例。
参数(Parameters) |
maxPoolSize |
int : The max pool size. |
公共方法(Public methods)
release
boolean release (T instance)
将实例释放到池中。
参数(Parameters) |
instance |
T : The instance to release. |
返回(Returns) |
boolean |
Whether the instance was put in the pool. |