public class FutureSchedulerWrapper extends Object implements FutureScheduler<Request>
| Constructor and Description |
|---|
FutureSchedulerWrapper(AbstractQueueScheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
Future<Request> |
add(Request r)
Adds a request to the queue
|
Future<Request> |
add(Request r,
Handleable h)
Adds a request to the queue
|
Future<Request> |
add(Request r,
Handleable h,
Priority p)
Adds a request to the queue
|
Future<Request> |
add(Request r,
Handleable h,
Priority p,
Priority pf)
Adds a request to the queue
|
Future<Request> |
add(Request r,
Priority p)
Adds a request to the queue
|
Future<Request> |
add(Request r,
Priority p,
Priority pf)
Adds a request to the queue
|
Scheduler |
getScheduler() |
public FutureSchedulerWrapper(AbstractQueueScheduler scheduler)
public Future<Request> add(Request r, Handleable h, Priority p, Priority pf)
FutureSchedulerThis request would be parsed by the handler specified, and its priority can be downgraded to a minimum priority specified
add in interface FutureScheduler<Request>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 requestpublic Future<Request> add(Request r, Handleable h, Priority p)
FutureSchedulerThis request would be parsed by the handler specified, and its priority can be downgraded to the default minimum priority
add in interface FutureScheduler<Request>r - request to fetch when dequeuedh - handler to be used to parse the requestp - initial priority of the requestpublic Future<Request> add(Request r, Handleable h)
FutureSchedulerThis request would be parsed by the handler specified, and it's initialised with default priority that can be downgraded to the default minimum priority
add in interface FutureScheduler<Request>r - request to fetch when dequeuedh - handler to be used to parse the requestpublic Future<Request> add(Request r, Priority p, Priority pf)
FutureSchedulerThis request would be parsed by a handler defined in Router or otherwise, and its priority can be downgraded to a minimum priority specified
add in interface FutureScheduler<Request>r - request to fetch when dequeuedp - initial priority of the requestpf - the minimum (floor) priority of this requestpublic Future<Request> add(Request r, Priority p)
FutureSchedulerThis request would be parsed by a handler defined in Router or otherwise defined, and its priority can be downgraded to the default minimum priority
add in interface FutureScheduler<Request>r - request to fetch when dequeuedp - initial priority of the requestpublic Future<Request> add(Request r)
FutureSchedulerThis 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
add in interface FutureScheduler<Request>r - request to fetch when dequeuedpublic Scheduler getScheduler()
Copyright © 2018. All rights reserved.