| 接口 | 说明 |
|---|---|
| Pool | |
| Poolable |
Instances of classes in this role collaborate with other objects for a limited amount of time,
then they are no longer needed for that collaboration.
|
| 类 | 说明 |
|---|---|
| CommonsPoolAdapter |
ObjectPool pool = new StackObjectPool(new MyPoolableObjectFactory());
CommonsPoolAdapter cp = new CommonsPoolAdapter(pool); MyObject mo =
(MyObject)cp.borrowObject(); .... cp.returnObject(mo);
|
| CommonsPoolFactory | |
| PoolConfigure |
Copyright © 2018. All rights reserved.