public class SimulationQueue extends JDKPriorityBlockingQueue<SimulationJob>
| Modifier and Type | Field and Description |
|---|---|
protected List<SimulationQueue> |
childs |
protected SimulationQueue |
parent |
lock, notEmpty, q| Constructor and Description |
|---|
SimulationQueue() |
SimulationQueue(SimulationQueue parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(SimulationQueue c) |
boolean |
offer(SimulationJob e)
Inserts the specified element into this priority queues.
|
SimulationJob |
peek() |
SimulationJob |
poll() |
SimulationJob |
poll(long timeout,
TimeUnit unit) |
boolean |
remove(Object o)
Removes a single instance of the specified element from this queues,
if it is present.
|
SimulationJob |
take() |
add, clear, comparator, contains, drainTo, drainTo, iterator, offer, put, remainingCapacity, size, toArray, toArray, toStringaddAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, streamprotected SimulationQueue parent
protected List<SimulationQueue> childs
public SimulationQueue()
public SimulationQueue(SimulationQueue parent)
public void addChild(SimulationQueue c)
public boolean remove(Object o)
JDKPriorityBlockingQueuee such
that o.equals(e), if this queues contains one or more such
elements. Returns true if and only if this queues contained
the specified element (or equivalently, if this queues changed as a
result of the call).remove in interface Collection<SimulationJob>remove in interface BlockingQueue<SimulationJob>remove in class JDKPriorityBlockingQueue<SimulationJob>o - element to be removed from this queues, if presentpublic boolean offer(SimulationJob e)
JDKPriorityBlockingQueueoffer in interface BlockingQueue<SimulationJob>offer in interface Queue<SimulationJob>offer in class JDKPriorityBlockingQueue<SimulationJob>e - the element to addQueue.offer(E))public SimulationJob peek()
peek in interface Queue<SimulationJob>peek in class JDKPriorityBlockingQueue<SimulationJob>public SimulationJob poll()
poll in interface Queue<SimulationJob>poll in class JDKPriorityBlockingQueue<SimulationJob>public SimulationJob take() throws InterruptedException
take in interface BlockingQueue<SimulationJob>take in class JDKPriorityBlockingQueue<SimulationJob>InterruptedExceptionpublic SimulationJob poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BlockingQueue<SimulationJob>poll in class JDKPriorityBlockingQueue<SimulationJob>InterruptedExceptionCopyright © 1999–2015 CodeLutin. All rights reserved.