Class AbstractPriorityQueueScheduler

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractPriorityQueueScheduler()
      Constructs an instance of AbstractQueueScheduler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean offer​(Job job)  
      boolean offer​(Job job, long timeout, java.util.concurrent.TimeUnit unit)  
      void put​(Job job)  
      • Methods inherited from class java.util.AbstractQueue

        add, addAll, clear, element, remove
      • 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
      • Methods inherited from interface java.util.concurrent.BlockingQueue

        add, contains, poll, remove
      • Methods inherited from interface java.util.Collection

        addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Queue

        element, poll, remove
    • Constructor Detail

      • AbstractPriorityQueueScheduler

        protected AbstractPriorityQueueScheduler()
        Constructs an instance of AbstractQueueScheduler.
    • Method Detail

      • put

        public final void put​(@Nonnull
                              Job job)
                       throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • offer

        public final boolean offer​(Job job,
                                   long timeout,
                                   @Nonnull
                                   java.util.concurrent.TimeUnit unit)
                            throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • offer

        public final boolean offer​(@Nonnull
                                   Job job)