Package ai.preferred.venom.job
Class PriorityQueueScheduler
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<Job>
-
- ai.preferred.venom.job.AbstractQueueScheduler
-
- ai.preferred.venom.job.AbstractPriorityQueueScheduler
-
- ai.preferred.venom.job.PriorityQueueScheduler
-
- All Implemented Interfaces:
QueueScheduler
,java.lang.Iterable<Job>
,java.util.Collection<Job>
,java.util.concurrent.BlockingQueue<Job>
,java.util.Queue<Job>
public class PriorityQueueScheduler extends AbstractPriorityQueueScheduler
This class provides an implementation of scheduler with a priority sensitive queue.Jobs with higher priority will be processed first.
- Author:
- Maksim Tkachenko, Ween Jiann Lee
-
-
Constructor Summary
Constructors Constructor Description PriorityQueueScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Job
poll()
Job
poll(long timeout, java.util.concurrent.TimeUnit unit)
-
Methods inherited from class ai.preferred.venom.job.AbstractPriorityQueueScheduler
offer, offer, put
-
Methods inherited from class ai.preferred.venom.job.AbstractQueueScheduler
drainTo, drainTo, getQueue, getScheduler, iterator, peek, remainingCapacity, size, take
-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-