Class JobScheduler
- java.lang.Object
-
- ai.preferred.venom.job.JobScheduler
-
-
Constructor Summary
Constructors Constructor Description JobScheduler(QueueScheduler queueScheduler)Constructs an instance of JobScheduler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(@NotNull Request request)Adds a request to the queue.voidadd(@NotNull Request request, @NotNull JobAttribute... jobAttributes)Adds a request to the queue.voidadd(@NotNull Request request, Handler handler, @NotNull JobAttribute... jobAttributes)Adds a request to the queue.voidadd(@NotNull Request r, Handler h, Priority p)Adds a request to the queue.voidadd(@NotNull Request r, Handler h, Priority p, Priority pf)Adds a request to the queue.voidadd(@NotNull Request r, Priority p)Adds a request to the queue.voidadd(@NotNull Request r, Priority p, Priority pf)Adds a request to the queue.voidadd(Request request, @NotNull Handler handler)Adds a request to the queue.
-
-
-
Constructor Detail
-
JobScheduler
public JobScheduler(QueueScheduler queueScheduler)
Constructs an instance of JobScheduler.- Parameters:
queueScheduler- an instance of BlockingQueue
-
-
Method Detail
-
add
public final void add(@NotNull @NotNull Request request, Handler handler, @NotNull @NotNull JobAttribute... jobAttributes)Description copied from interface:SchedulerAdds a request to the queue.This request would be parsed by the handler specified.
-
add
public final void add(@NotNull @NotNull Request request, @NotNull @NotNull JobAttribute... jobAttributes)Description copied from interface:SchedulerAdds a request to the queue.This request would be parsed by the handler specified.
-
add
public final void add(Request request, @NotNull @NotNull Handler handler)
Description copied from interface:SchedulerAdds a request to the queue.This request would be parsed by the handler specified.
-
add
public final void add(@NotNull @NotNull Request request)Description copied from interface:SchedulerAdds a request to the queue.This request would be parsed by a handler defined in Router or otherwise defined.
-
add
public final void add(@NotNull @NotNull Request r, Handler h, Priority p, Priority pf)Description copied from interface:SchedulerAdds a request to the queue. Will be removed in the next release.This request would be parsed by the handler specified, and its priority can be downgraded to a minimum priority specified.
-
add
public final void add(@NotNull @NotNull Request r, Handler h, Priority p)Description copied from interface:SchedulerAdds a request to the queue. Will be removed in the next release.This request would be parsed by the handler specified, and its priority can be downgraded to the default minimum priority.
-
add
public final void add(@NotNull @NotNull Request r, Priority p, Priority pf)Description copied from interface:SchedulerAdds a request to the queue. Will be removed in the next release.This request would be parsed by a handler defined in Router or otherwise, and its priority can be downgraded to a minimum priority specified.
-
add
public final void add(@NotNull @NotNull Request r, Priority p)Description copied from interface:SchedulerAdds a request to the queue. Will be removed in the next release.This request would be parsed by a handler defined in Router or otherwise defined, and its priority can be downgraded to the default minimum priority.
-
-