Class LazyScheduler

  • All Implemented Interfaces:
    QueueScheduler, java.lang.Iterable<Job>, java.util.Collection<Job>, java.util.concurrent.BlockingQueue<Job>, java.util.Queue<Job>

    @Deprecated
    public class LazyScheduler
    extends java.lang.Object
    implements QueueScheduler
    Deprecated.
    Deprecated, will be removed in the next release. Please use LazyPriorityQueueScheduler instead
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyScheduler​(java.util.Iterator<Request> requests)
      Deprecated.
      Constructs an instance of lazy scheduler without a default handler.
      LazyScheduler​(java.util.Iterator<Request> requests, Handler handler)
      Deprecated.
      Constructs an instance of lazy scheduler with a default handler.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean add​(Job job)
      Deprecated.
       
      boolean addAll​(java.util.Collection<? extends Job> c)
      Deprecated.
       
      void clear()
      Deprecated.
       
      boolean contains​(java.lang.Object o)
      Deprecated.
       
      boolean containsAll​(java.util.Collection<?> c)
      Deprecated.
       
      int drainTo​(java.util.Collection<? super Job> c)
      Deprecated.
       
      int drainTo​(java.util.Collection<? super Job> c, int maxElements)
      Deprecated.
       
      Job element()
      Deprecated.
       
      boolean equals​(java.lang.Object o)
      Deprecated.
       
      Scheduler getScheduler()
      Deprecated.
      Get the scheduler to add jobs.
      int hashCode()
      Deprecated.
       
      boolean isEmpty()
      Deprecated.
       
      java.util.Iterator<Job> iterator()
      Deprecated.
       
      boolean offer​(Job job)
      Deprecated.
       
      boolean offer​(Job job, long timeout, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      Job peek()
      Deprecated.
       
      Job poll()
      Deprecated.
       
      Job poll​(long timeout, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      void put​(Job job)
      Deprecated.
       
      int remainingCapacity()
      Deprecated.
       
      Job remove()
      Deprecated.
       
      boolean remove​(java.lang.Object o)
      Deprecated.
       
      boolean removeAll​(java.util.Collection<?> c)
      Deprecated.
       
      boolean retainAll​(java.util.Collection<?> c)
      Deprecated.
       
      int size()
      Deprecated.
       
      Job take()
      Deprecated.
       
      java.lang.Object[] toArray()
      Deprecated.
       
      <T> T[] toArray​(T[] a)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, spliterator, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • LazyScheduler

        public LazyScheduler​(java.util.Iterator<Request> requests,
                             Handler handler)
        Deprecated.
        Constructs an instance of lazy scheduler with a default handler.
        Parameters:
        requests - An iterator to obtain requests
        handler - The default handler to use
      • LazyScheduler

        public LazyScheduler​(java.util.Iterator<Request> requests)
        Deprecated.
        Constructs an instance of lazy scheduler without a default handler.
        Parameters:
        requests - An iterator to obtain requests
    • Method Detail

      • add

        public final boolean add​(@Nonnull
                                 Job job)
        Deprecated.
        Specified by:
        add in interface java.util.concurrent.BlockingQueue<Job>
        Specified by:
        add in interface java.util.Collection<Job>
        Specified by:
        add in interface java.util.Queue<Job>
      • offer

        public final boolean offer​(@Nonnull
                                   Job job)
        Deprecated.
        Specified by:
        offer in interface java.util.concurrent.BlockingQueue<Job>
        Specified by:
        offer in interface java.util.Queue<Job>
      • remove

        public final Job remove()
        Deprecated.
        Specified by:
        remove in interface java.util.Queue<Job>
      • poll

        public final Job poll()
        Deprecated.
        Specified by:
        poll in interface java.util.Queue<Job>
      • element

        public final Job element()
        Deprecated.
        Specified by:
        element in interface java.util.Queue<Job>
      • peek

        public final Job peek()
        Deprecated.
        Specified by:
        peek in interface java.util.Queue<Job>
      • put

        public final void put​(@Nonnull
                              Job job)
                       throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        put in interface java.util.concurrent.BlockingQueue<Job>
        Throws:
        java.lang.InterruptedException
      • offer

        public final boolean offer​(Job job,
                                   long timeout,
                                   @Nonnull
                                   java.util.concurrent.TimeUnit unit)
                            throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        offer in interface java.util.concurrent.BlockingQueue<Job>
        Throws:
        java.lang.InterruptedException
      • take

        public final Job take()
                       throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        take in interface java.util.concurrent.BlockingQueue<Job>
        Throws:
        java.lang.InterruptedException
      • poll

        public final Job poll​(long timeout,
                              @Nonnull
                              java.util.concurrent.TimeUnit unit)
                       throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        poll in interface java.util.concurrent.BlockingQueue<Job>
        Throws:
        java.lang.InterruptedException
      • remainingCapacity

        public final int remainingCapacity()
        Deprecated.
        Specified by:
        remainingCapacity in interface java.util.concurrent.BlockingQueue<Job>
      • remove

        public final boolean remove​(java.lang.Object o)
        Deprecated.
        Specified by:
        remove in interface java.util.concurrent.BlockingQueue<Job>
        Specified by:
        remove in interface java.util.Collection<Job>
      • containsAll

        public final boolean containsAll​(@Nonnull
                                         java.util.Collection<?> c)
        Deprecated.
        Specified by:
        containsAll in interface java.util.Collection<Job>
      • addAll

        public final boolean addAll​(@Nonnull
                                    java.util.Collection<? extends Job> c)
        Deprecated.
        Specified by:
        addAll in interface java.util.Collection<Job>
      • removeAll

        public final boolean removeAll​(@Nonnull
                                       java.util.Collection<?> c)
        Deprecated.
        Specified by:
        removeAll in interface java.util.Collection<Job>
      • retainAll

        public final boolean retainAll​(@Nonnull
                                       java.util.Collection<?> c)
        Deprecated.
        Specified by:
        retainAll in interface java.util.Collection<Job>
      • clear

        public final void clear()
        Deprecated.
        Specified by:
        clear in interface java.util.Collection<Job>
      • equals

        public final boolean equals​(java.lang.Object o)
        Deprecated.
        Specified by:
        equals in interface java.util.Collection<Job>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Deprecated.
        Specified by:
        hashCode in interface java.util.Collection<Job>
        Overrides:
        hashCode in class java.lang.Object
      • size

        public final int size()
        Deprecated.
        Specified by:
        size in interface java.util.Collection<Job>
      • isEmpty

        public final boolean isEmpty()
        Deprecated.
        Specified by:
        isEmpty in interface java.util.Collection<Job>
      • contains

        public final boolean contains​(java.lang.Object o)
        Deprecated.
        Specified by:
        contains in interface java.util.concurrent.BlockingQueue<Job>
        Specified by:
        contains in interface java.util.Collection<Job>
      • iterator

        public final java.util.Iterator<Job> iterator()
        Deprecated.
        Specified by:
        iterator in interface java.util.Collection<Job>
        Specified by:
        iterator in interface java.lang.Iterable<Job>
      • toArray

        public final java.lang.Object[] toArray()
        Deprecated.
        Specified by:
        toArray in interface java.util.Collection<Job>
      • toArray

        public final <T> T[] toArray​(@Nonnull
                                     T[] a)
        Deprecated.
        Specified by:
        toArray in interface java.util.Collection<Job>
      • drainTo

        public final int drainTo​(@Nonnull
                                 java.util.Collection<? super Job> c)
        Deprecated.
        Specified by:
        drainTo in interface java.util.concurrent.BlockingQueue<Job>
      • drainTo

        public final int drainTo​(@Nonnull
                                 java.util.Collection<? super Job> c,
                                 int maxElements)
        Deprecated.
        Specified by:
        drainTo in interface java.util.concurrent.BlockingQueue<Job>