|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Pool
Represents a pooling strategy for certain object instance.
Method Summary | |
---|---|
Object |
getInstance(Factory factory)
Apply the pooling strategy and return an instance from either the pool or the factory. |
Object |
getPooledInstance(Object def)
Get the instance that's already pooled. |
boolean |
isPooled()
Is this pool currently having something in cache? |
Method Detail |
---|
Object getInstance(Factory factory) throws Throwable
factory
- the factory to create the object instance.
Throwable
Object getPooledInstance(Object def)
def
- the default value to return if there's no pooled instance.
boolean isPooled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |