Package ai.preferred.venom.job
Class LazyScheduler
- java.lang.Object
-
- ai.preferred.venom.job.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
-
-
-
-
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 requestshandler
- 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
-
getScheduler
public final Scheduler getScheduler()
Deprecated.Description copied from interface:QueueScheduler
Get the scheduler to add jobs.- Specified by:
getScheduler
in interfaceQueueScheduler
- Returns:
- an instance of Scheduler
-
add
public final boolean add(@Nonnull Job job)
Deprecated.
-
offer
public final boolean offer(@Nonnull Job job)
Deprecated.
-
element
public final Job element()
Deprecated.- Specified by:
element
in interfacejava.util.Queue<Job>
-
put
public final void put(@Nonnull Job job) throws java.lang.InterruptedException
Deprecated.- Specified by:
put
in interfacejava.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 interfacejava.util.concurrent.BlockingQueue<Job>
- Throws:
java.lang.InterruptedException
-
take
public final Job take() throws java.lang.InterruptedException
Deprecated.- Specified by:
take
in interfacejava.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 interfacejava.util.concurrent.BlockingQueue<Job>
- Throws:
java.lang.InterruptedException
-
remainingCapacity
public final int remainingCapacity()
Deprecated.- Specified by:
remainingCapacity
in interfacejava.util.concurrent.BlockingQueue<Job>
-
remove
public final boolean remove(java.lang.Object o)
Deprecated.
-
containsAll
public final boolean containsAll(@Nonnull java.util.Collection<?> c)
Deprecated.- Specified by:
containsAll
in interfacejava.util.Collection<Job>
-
addAll
public final boolean addAll(@Nonnull java.util.Collection<? extends Job> c)
Deprecated.- Specified by:
addAll
in interfacejava.util.Collection<Job>
-
removeAll
public final boolean removeAll(@Nonnull java.util.Collection<?> c)
Deprecated.- Specified by:
removeAll
in interfacejava.util.Collection<Job>
-
retainAll
public final boolean retainAll(@Nonnull java.util.Collection<?> c)
Deprecated.- Specified by:
retainAll
in interfacejava.util.Collection<Job>
-
clear
public final void clear()
Deprecated.- Specified by:
clear
in interfacejava.util.Collection<Job>
-
equals
public final boolean equals(java.lang.Object o)
Deprecated.- Specified by:
equals
in interfacejava.util.Collection<Job>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
Deprecated.- Specified by:
hashCode
in interfacejava.util.Collection<Job>
- Overrides:
hashCode
in classjava.lang.Object
-
size
public final int size()
Deprecated.- Specified by:
size
in interfacejava.util.Collection<Job>
-
isEmpty
public final boolean isEmpty()
Deprecated.- Specified by:
isEmpty
in interfacejava.util.Collection<Job>
-
contains
public final boolean contains(java.lang.Object o)
Deprecated.
-
iterator
public final java.util.Iterator<Job> iterator()
Deprecated.
-
toArray
public final java.lang.Object[] toArray()
Deprecated.- Specified by:
toArray
in interfacejava.util.Collection<Job>
-
toArray
public final <T> T[] toArray(@Nonnull T[] a)
Deprecated.- Specified by:
toArray
in interfacejava.util.Collection<Job>
-
drainTo
public final int drainTo(@Nonnull java.util.Collection<? super Job> c)
Deprecated.- Specified by:
drainTo
in interfacejava.util.concurrent.BlockingQueue<Job>
-
-