|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.asyncqueue.AsyncQueue<E>
public class AsyncQueue<E>
Class represents common implementation of asynchronous processing queue.
| Field Summary | |
|---|---|
protected AtomicReference<E> |
currentElement
Current processing task |
protected LinkedTransferQueue<E> |
queue
The queue of tasks, which will be processed asynchrounously |
protected ReentrantLock |
queuedActionLock
Locker object, which could be used by a queue processors |
| Constructor Summary | |
|---|---|
AsyncQueue()
|
|
| Method Summary | |
|---|---|
AtomicReference<E> |
getCurrentElement()
Get the current processing task |
LinkedTransferQueue<E> |
getQueue()
Get the queue of tasks, which will be processed asynchrounously |
ReentrantLock |
getQueuedActionLock()
Get the locker object, which could be used by a queue processors |
void |
setCurrentElement(AtomicReference<E> currentElement)
Set the current processing task |
void |
setQueue(LinkedTransferQueue<E> queue)
Set the queue of tasks, which will be processed asynchrounously |
void |
setQueuedActionLock(ReentrantLock queuedActionLock)
Set the locker object, which could be used by a queue processors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LinkedTransferQueue<E> queue
protected AtomicReference<E> currentElement
protected ReentrantLock queuedActionLock
| Constructor Detail |
|---|
public AsyncQueue()
| Method Detail |
|---|
public AtomicReference<E> getCurrentElement()
public void setCurrentElement(AtomicReference<E> currentElement)
currentElement - the current processing taskpublic LinkedTransferQueue<E> getQueue()
public void setQueue(LinkedTransferQueue<E> queue)
queue - the queue of tasks, which will be processed asynchrounouslypublic ReentrantLock getQueuedActionLock()
public void setQueuedActionLock(ReentrantLock queuedActionLock)
queuedActionLock - the locker object, which could be used by a
queue processors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||