Method Summary |
|
void | discard(InstanceType instance) Discard the instance which is in the pool. |
InstanceType | get() Gets an object from the pool. |
InstanceType | get(Clue clue) Gets an object by using a specific hint. |
void | release(InstanceType instance) Puts back the instance in the pool so it can be reused. |
void | start() Start the pool.
It could create initial instances if specified. |
void | stop() Stop this pool. |