public abstract class AbstractScheduler extends Object implements Scheduler
Scheduler.HandledRequestHolder, Scheduler.Priority| Modifier and Type | Field and Description |
|---|---|
protected PriorityBlockingQueue<Scheduler.HandledRequestHolder> |
queue |
| Constructor and Description |
|---|
AbstractScheduler() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Request r)
Adds a request to the queue
|
void |
add(Request r,
Handleable h)
Adds a request to the queue
|
void |
add(Request r,
Handleable h,
Scheduler.Priority p)
Adds a request to the queue
|
void |
add(Request r,
Handleable h,
Scheduler.Priority p,
Scheduler.Priority pf)
Adds a request to the queue
|
void |
add(Request r,
Scheduler.Priority p)
Adds a request to the queue
|
void |
add(Request r,
Scheduler.Priority p,
Scheduler.Priority pf)
Adds a request to the queue
|
protected final PriorityBlockingQueue<Scheduler.HandledRequestHolder> queue
public void add(Request r, Handleable h, Scheduler.Priority p, Scheduler.Priority pf)
SchedulerThis request would be parsed by the handler specified, and its priority can be downgraded to a minimum priority specified
public void add(Request r, Handleable h, Scheduler.Priority p)
SchedulerThis request would be parsed by the handler specified, and its priority can be downgraded to the default minimum priority
public void add(Request r, Handleable h)
SchedulerThis request would be parsed by the handler specified, and it's initialised with default priority that can be downgraded to the default minimum priority
public void add(Request r, Scheduler.Priority p, Scheduler.Priority pf)
SchedulerThis request would be parsed by a handler defined in HandlerRouter or otherwise, and its priority can be downgraded to a minimum priority specified
public void add(Request r, Scheduler.Priority p)
SchedulerThis request would be parsed by a handler defined in HandlerRouter or otherwise defined, and its priority can be downgraded to the default minimum priority
Copyright © 2018. All rights reserved.