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
Fields inherited from class fr.ifremer.isisfish.simulator.launcher.JDKPriorityBlockingQueue
lock, notEmpty, q
-
Constructor Summary
-
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, toString
Methods inherited from class java.util.AbstractQueue
addAll, element, remove
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:JDKPriorityBlockingQueue
Removes a single instance of the specified element from this queues, if it is present. More formally, removes an elemente
such thato.equals(e)
, if this queues contains one or more such elements. Returnstrue
if and only if this queues contained the specified element (or equivalently, if this queues changed as a result of the call).- Specified by:
remove
in interfaceBlockingQueue<SimulationJob>
- Specified by:
remove
in interfaceCollection<SimulationJob>
- Overrides:
remove
in classJDKPriorityBlockingQueue<SimulationJob>
- Parameters:
o
- element to be removed from this queues, if present- Returns:
true
if this queues changed as a result of the call
-
offer
Description copied from class:JDKPriorityBlockingQueue
Inserts the specified element into this priority queues.- Specified by:
offer
in interfaceBlockingQueue<SimulationJob>
- Specified by:
offer
in interfaceQueue<SimulationJob>
- Overrides:
offer
in classJDKPriorityBlockingQueue<SimulationJob>
- Parameters:
e
- the element to add- Returns:
true
(as specified byQueue.offer(E)
)
-
peek
- Specified by:
peek
in interfaceQueue<SimulationJob>
- Overrides:
peek
in classJDKPriorityBlockingQueue<SimulationJob>
-
poll
- Specified by:
poll
in interfaceQueue<SimulationJob>
- Overrides:
poll
in classJDKPriorityBlockingQueue<SimulationJob>
-
take
- Specified by:
take
in interfaceBlockingQueue<SimulationJob>
- Overrides:
take
in classJDKPriorityBlockingQueue<SimulationJob>
- Throws:
InterruptedException
-
poll
- Specified by:
poll
in interfaceBlockingQueue<SimulationJob>
- Overrides:
poll
in classJDKPriorityBlockingQueue<SimulationJob>
- Throws:
InterruptedException
-