fr.ifremer.isisfish.simulator.launcher
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>
public class SimulationQueue
- extends JDKPriorityBlockingQueue<SimulationJob>
Multi tail PriorityBlockingQueue.
- Version:
- $Revision: 3124 $
Last update : $Date: 2010-11-29 19:14:09 +0100 (lun., 29 nov. 2010) $
By : $Author: chatellier $
- Author:
- poussin
- See Also:
- Serialized Form
| Methods inherited from class fr.ifremer.isisfish.simulator.launcher.JDKPriorityBlockingQueue |
add, clear, comparator, contains, drainTo, drainTo, iterator, offer, put, remainingCapacity, size, toArray, toArray, toString |
parent
protected SimulationQueue parent
childs
protected List<SimulationQueue> childs
SimulationQueue
public SimulationQueue()
SimulationQueue
public SimulationQueue(SimulationQueue parent)
addChild
public void addChild(SimulationQueue c)
remove
public boolean remove(Object o)
- Description copied from class:
JDKPriorityBlockingQueue
- Removes a single instance of the specified element from this queues,
if it is present. More formally, removes an element
e 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).
- Specified by:
remove in interface Collection<SimulationJob>- Specified by:
remove in interface BlockingQueue<SimulationJob>- Overrides:
remove in class JDKPriorityBlockingQueue<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
public boolean offer(SimulationJob e)
- Description copied from class:
JDKPriorityBlockingQueue
- Inserts the specified element into this priority queues.
- Specified by:
offer in interface BlockingQueue<SimulationJob>- Specified by:
offer in interface Queue<SimulationJob>- Overrides:
offer in class JDKPriorityBlockingQueue<SimulationJob>
- Parameters:
e - the element to add
- Returns:
- true (as specified by
Queue.offer(E))
peek
public SimulationJob peek()
- Specified by:
peek in interface Queue<SimulationJob>- Overrides:
peek in class JDKPriorityBlockingQueue<SimulationJob>
poll
public SimulationJob poll()
- Specified by:
poll in interface Queue<SimulationJob>- Overrides:
poll in class JDKPriorityBlockingQueue<SimulationJob>
take
public SimulationJob take()
throws InterruptedException
- Specified by:
take in interface BlockingQueue<SimulationJob>- Overrides:
take in class JDKPriorityBlockingQueue<SimulationJob>
- Throws:
InterruptedException
poll
public SimulationJob poll(long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
poll in interface BlockingQueue<SimulationJob>- Overrides:
poll in class JDKPriorityBlockingQueue<SimulationJob>
- Throws:
InterruptedException
Copyright © 1999-2011 CodeLutin. All Rights Reserved.