public abstract class AbstractObjectPool<PooledObject,Key> extends Object implements ObjectPool<PooledObject,Key>
Constructor and Description |
---|
AbstractObjectPool(int cachedObjLimit) |
Modifier and Type | Method and Description |
---|---|
PooledObject |
acquire(Key key) |
abstract PooledObject |
create(Key key)
only create needs to be implemented by sub classes.
|
void |
destroy() |
void |
destroy(Key key,
PooledObject obj) |
void |
release(PooledObject obj,
Key key) |
public PooledObject acquire(Key key)
acquire
in interface ObjectPool<PooledObject,Key>
public void release(PooledObject obj, Key key)
release
in interface ObjectPool<PooledObject,Key>
public void destroy(Key key, PooledObject obj)
public void destroy()
public abstract PooledObject create(Key key)
Copyright © 2004–2017 52north.org. All rights reserved.