Package org.dbunit.util.concurrent
Class SynchronousChannel.Queue
java.lang.Object
org.dbunit.util.concurrent.SynchronousChannel.Queue
- Enclosing class:
SynchronousChannel
Simple FIFO queue class to hold waiting puts/takes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LinkedNodeThe first node in the queue, ornullif empty.protected LinkedNodeThe last node in the queue, ornullif empty. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LinkedNodedeq()Removes and returns the node at the front of the queue.protected voidenq(LinkedNode p) Appends the given node to the end of the queue.
-
Field Details
-
head
The first node in the queue, ornullif empty. -
last
The last node in the queue, ornullif empty.
-
-
Constructor Details
-
Queue
protected Queue()
-
-
Method Details
-
enq
Appends the given node to the end of the queue.- Parameters:
p- the node to append.
-
deq
Removes and returns the node at the front of the queue.- Returns:
- the node that was at the front of the queue, or
nullif empty.
-