Class SimulationQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
fr.ifremer.isisfish.simulator.launcher.JDKPriorityBlockingQueue<SimulationJob>
fr.ifremer.isisfish.simulator.launcher.SimulationQueue
- All Implemented Interfaces:
Serializable,Iterable<SimulationJob>,Collection<SimulationJob>,BlockingQueue<SimulationJob>,Queue<SimulationJob>
Multi tail PriorityBlockingQueue.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- poussin
- See Also:
-
Field Summary
FieldsFields inherited from class fr.ifremer.isisfish.simulator.launcher.JDKPriorityBlockingQueue
lock, notEmpty, q -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class fr.ifremer.isisfish.simulator.launcher.JDKPriorityBlockingQueue
add, clear, comparator, contains, drainTo, drainTo, iterator, offer, put, remainingCapacity, size, toArray, toArray, toStringMethods inherited from class java.util.AbstractQueue
addAll, element, removeMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray
-
Field Details
-
parent
-
childs
-
-
Constructor Details
-
SimulationQueue
public SimulationQueue() -
SimulationQueue
-
-
Method Details
-
addChild
-
remove
Description copied from class:JDKPriorityBlockingQueueRemoves a single instance of the specified element from this queues, if it is present. More formally, removes an elementesuch thato.equals(e), if this queues contains one or more such elements. Returnstrueif and only if this queues contained the specified element (or equivalently, if this queues changed as a result of the call).- Specified by:
removein interfaceBlockingQueue<SimulationJob>- Specified by:
removein interfaceCollection<SimulationJob>- Overrides:
removein classJDKPriorityBlockingQueue<SimulationJob>- Parameters:
o- element to be removed from this queues, if present- Returns:
trueif this queues changed as a result of the call
-
offer
Description copied from class:JDKPriorityBlockingQueueInserts the specified element into this priority queues.- Specified by:
offerin interfaceBlockingQueue<SimulationJob>- Specified by:
offerin interfaceQueue<SimulationJob>- Overrides:
offerin classJDKPriorityBlockingQueue<SimulationJob>- Parameters:
e- the element to add- Returns:
true(as specified byQueue.offer(E))
-
peek
- Specified by:
peekin interfaceQueue<SimulationJob>- Overrides:
peekin classJDKPriorityBlockingQueue<SimulationJob>
-
poll
- Specified by:
pollin interfaceQueue<SimulationJob>- Overrides:
pollin classJDKPriorityBlockingQueue<SimulationJob>
-
take
- Specified by:
takein interfaceBlockingQueue<SimulationJob>- Overrides:
takein classJDKPriorityBlockingQueue<SimulationJob>- Throws:
InterruptedException
-
poll
- Specified by:
pollin interfaceBlockingQueue<SimulationJob>- Overrides:
pollin classJDKPriorityBlockingQueue<SimulationJob>- Throws:
InterruptedException
-