|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Pool<T>
Represents a pooling strategy for certain object instance.
Zephyr Business Solution
| Method Summary | |
|---|---|
T |
getInstance(Factory<T> factory)
Apply the pooling strategy and return an instance from either the pool or the factory. |
T |
getPooledInstance(T def)
Get the instance that's already pooled. |
boolean |
isPooled()
Is this pool currently having something in cache? |
| Method Detail |
|---|
T getInstance(Factory<T> factory)
factory - the factory to create the object instance.
T getPooledInstance(T 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 | |||||||||