Interface Scheduler
-
- All Known Implementing Classes:
JobScheduler
public interface SchedulerThis interface represents only the adding part a scheduler.- Author:
- Maksim Tkachenko, Ween Jiann Lee
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidadd(@NotNull Request request)Adds a request to the queue.voidadd(@NotNull Request request, @NotNull Handler handler)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)Deprecated.voidadd(@NotNull Request r, Handler h, Priority p, Priority pf)Deprecated.voidadd(@NotNull Request r, Priority p)Deprecated.voidadd(@NotNull Request r, Priority p, Priority pf)Deprecated.
-
-
-
Method Detail
-
add
void add(@NotNull @NotNull Request request, Handler handler, @NotNull @NotNull JobAttribute... jobAttributes)Adds a request to the queue.This request would be parsed by the handler specified.
- Parameters:
request- request to fetch when dequeued.handler- handler to be used to parse the request.jobAttributes- attributes to insert to the job.
-
add
void add(@NotNull @NotNull Request request, @NotNull @NotNull JobAttribute... jobAttributes)Adds a request to the queue.This request would be parsed by the handler specified.
- Parameters:
request- request to fetch when dequeued.jobAttributes- attributes to insert to the job.
-
add
void add(@NotNull @NotNull Request request, @NotNull @NotNull Handler handler)Adds a request to the queue.This request would be parsed by the handler specified.
- Parameters:
request- request to fetch when dequeued.handler- handler to be used to parse the request.
-
add
void add(@NotNull @NotNull Request request)Adds a request to the queue.This request would be parsed by a handler defined in Router or otherwise defined.
- Parameters:
request- request to fetch when dequeued.
-
add
@Deprecated void add(@NotNull @NotNull Request r, Handler h, Priority p, Priority pf)Deprecated.Adds 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.
- Parameters:
r- request to fetch when dequeuedh- handler to be used to parse the requestp- initial priority of the requestpf- the minimum (floor) priority of this request
-
add
@Deprecated void add(@NotNull @NotNull Request r, Handler h, Priority p)Deprecated.Adds 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.
- Parameters:
r- request to fetch when dequeuedh- handler to be used to parse the requestp- initial priority of the request
-
add
@Deprecated void add(@NotNull @NotNull Request r, Priority p, Priority pf)Deprecated.Adds 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.
- Parameters:
r- request to fetch when dequeuedp- initial priority of the requestpf- the minimum (floor) priority of this request
-
add
@Deprecated void add(@NotNull @NotNull Request r, Priority p)Deprecated.Adds 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.
- Parameters:
r- request to fetch when dequeuedp- initial priority of the request
-
-