public interface PoolWaitQueue
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_WAIT_QUEUE |
static String |
THREAD_PRIORITY_BASED_WAIT_QUEUE |
| Modifier and Type | Method and Description |
|---|---|
void |
addToQueue(Object o)
resource requesting thread will be added to queue
and the object on which it is made to wait is returned |
Collection |
getQueueContents()
used to get access to the list of waiting clients
Useful in case of rolling over from one pool to another eg: transparent-dynamic-pool-reconfiguration. |
int |
getQueueLength()
returns the length of wait queue
|
Object |
peek()
returns (does not remove) the first object (resource request) from the queue
|
Object |
remove()
removes the first object (resource request) from the queue
|
boolean |
removeFromQueue(Object o)
removes the specified object (resource request) from the queue
|
static final String DEFAULT_WAIT_QUEUE
static final String THREAD_PRIORITY_BASED_WAIT_QUEUE
int getQueueLength()
void addToQueue(Object o)
o - Objectboolean removeFromQueue(Object o)
o - ObjectObject remove()
Object peek()
Collection getQueueContents()
Copyright © 2017. All rights reserved.