public interface Scheduler
| Modifier and Type | Method and Description |
|---|---|
void |
add(@NotNull Request r)
Adds a request to the queue.
|
void |
add(@NotNull Request r,
@NotNull Handler h)
Adds a request to the queue.
|
void |
add(@NotNull Request r,
@NotNull Handler h,
Priority p)
Adds a request to the queue.
|
void |
add(@NotNull Request r,
@NotNull Handler h,
Priority p,
Priority pf)
Adds a request to the queue.
|
void |
add(@NotNull Request r,
Priority p)
Adds a request to the queue.
|
void |
add(@NotNull Request r,
Priority p,
Priority pf)
Adds a request to the queue.
|
void add(@NotNull
@NotNull Request r,
@NotNull
@NotNull Handler h,
Priority p,
Priority pf)
This request would be parsed by the handler specified, and its priority can be downgraded to a minimum priority specified.
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 requestvoid add(@NotNull
@NotNull Request r,
@NotNull
@NotNull Handler h,
Priority p)
This request would be parsed by the handler specified, and its priority can be downgraded to the default minimum priority.
r - request to fetch when dequeuedh - handler to be used to parse the requestp - initial priority of the requestvoid add(@NotNull
@NotNull Request r,
@NotNull
@NotNull Handler h)
This request would be parsed by the handler specified, and it's initialised with default priority that can be downgraded to the default minimum priority.
r - request to fetch when dequeuedh - handler to be used to parse the requestvoid add(@NotNull
@NotNull Request r,
Priority p,
Priority pf)
This request would be parsed by a handler defined in Router or otherwise, and its priority can be downgraded to a minimum priority specified.
r - request to fetch when dequeuedp - initial priority of the requestpf - the minimum (floor) priority of this requestvoid add(@NotNull
@NotNull Request r,
Priority p)
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.
r - request to fetch when dequeuedp - initial priority of the requestvoid add(@NotNull
@NotNull Request r)
This request would be parsed by a handler defined in Router or otherwise defined, and it's initialised with default priority that can be downgraded to the default minimum priority.
r - request to fetch when dequeuedCopyright © 2019. All rights reserved.