public class AtomQueue extends java.util.LinkedList<Atom>
Memory FIFO Queue for job atoms pending of processing
Constructor and Description |
---|
AtomQueue()
Create an empty queue with a maximum of 10000 atoms
|
AtomQueue(int iMaxSize)
Create an empty queue
|
Modifier and Type | Method and Description |
---|---|
int |
maxsize() |
Atom |
pop()
Pop first available atom from queue
|
void |
push(Atom oAtm)
Add an atom to the end of the queue
|
int |
remove(java.lang.String sGuJob)
Remove atoms from a given Job
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
containsAll, isEmpty, removeAll, retainAll, toString
public AtomQueue()
public AtomQueue(int iMaxSize)
iMaxSize
- Maximum number of atoms that the queue can mantain in memorypublic int maxsize()
public void push(Atom oAtm)
Add an atom to the end of the queue
public Atom pop()
Pop first available atom from queue
public int remove(java.lang.String sGuJob)
Remove atoms from a given Job
sGuJob
- String Job GUID