public interface Job extends Comparable<Job>
Modifier and Type | Method and Description |
---|---|
Handleable |
getHandler()
Get the handler to handle the response of the job.
|
Priority |
getPriority()
Get the current priority set for this job.
|
@NotNull Request |
getRequest()
Get the request of this job.
|
int |
getTryCount()
Get attempt number of this job.
|
void |
reQueue()
Remove any existing in queue, downgrades the priority and
adds the job back into queue.
|
compareTo
@NotNull @NotNull Request getRequest()
@Nullable Handleable getHandler()
If handler is null, routed handler will be used to assign a handler to the response, based on its criteria.
Priority getPriority()
void reQueue()
int getTryCount()
Copyright © 2018. All rights reserved.