Package ai.preferred.venom.job
Interface Job
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HandlergetHandler()Get the handler to handle the response of the job.PrioritygetPriority()Get the current priority set for this job.@NotNull RequestgetRequest()Get the request of this job.intgetTryCount()Get attempt number of this job.voidreQueue()Remove any existing in queue, downgrades the priority and adds the job back into queue.
-
-
-
Method Detail
-
getRequest
@NotNull @NotNull Request getRequest()
Get the request of this job.- Returns:
- Request of the job.
-
getHandler
@Nullable Handler getHandler()
Get the handler to handle the response of the job.If handler is null, routed handler will be used to assign a handler to the response, based on its criteria.
- Returns:
- Handler for the response or null.
-
getPriority
Priority getPriority()
Get the current priority set for this job.- Returns:
- the current priority of the job.
-
reQueue
void reQueue()
Remove any existing in queue, downgrades the priority and adds the job back into queue.
-
getTryCount
int getTryCount()
Get attempt number of this job.- Returns:
- Attempt (try) count of the job.
-
-