|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - pool item typepublic interface IBasicPool<E>
| Method Summary | |
|---|---|
void |
clearPool()
After calling this method the pool will have a zero size and no item will be created until setExpectedSize will be called again. |
E |
get()
This method block is there is no available pool item in the pool. |
E |
get(IWaitControl timeout)
This method block is there is no available pool item in the pool. |
void |
lockSizeToZero()
|
void |
unlockSizeToZero()
|
void |
waitAllRemoveListenerCompleted()
After calling this method all pending remove calls will be called. |
| Methods inherited from interface org.ow2.util.pool.impl.enhanced.api.IPool |
|---|
put, remove, signalAllWaiters |
| Methods inherited from interface org.ow2.util.pool.impl.enhanced.internal.resizer.api.IResizable |
|---|
setExpectedSize |
| Method Detail |
|---|
E get()
throws WaiterInterruptedException,
PoolFactoryBroken,
java.lang.InterruptedException
WaiterInterruptedException - if error occurs
PoolFactoryBroken
java.lang.InterruptedException
E get(IWaitControl timeout)
throws TimeoutPoolException,
IllegalTimeoutException,
WaiterInterruptedException,
PoolFactoryBroken,
java.lang.InterruptedException
IPool
get in interface IPool<E>timeout - if the get wait more than timeout then the method
throw a TimeoutPoolException.
TimeoutPoolException
IllegalTimeoutException
WaiterInterruptedException
PoolFactoryBroken
java.lang.InterruptedException
void clearPool()
throws java.lang.InterruptedException
java.lang.InterruptedException
void waitAllRemoveListenerCompleted()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionvoid lockSizeToZero()
void unlockSizeToZero()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||