public interface JobProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
afterProcessingJob(@NotNull Job job) |
void |
beforeProcessingJob(@NotNull Job job) |
void |
finish() |
@Nullable Job |
getCurrentJob() |
long |
getCurrentJobStartedAt() |
@Nullable JobProcessorExceptionHandler |
getExceptionHandler() |
@NotNull java.lang.Iterable<Job> |
getPendingJobs() |
boolean |
isFinished() |
boolean |
isSuspended() |
int |
pendingJobs() |
int |
pendingTimedJobs() |
boolean |
queue(Job job) |
boolean |
queue(Job job,
Priority priority) |
Job |
queueAt(Job job,
long millis) |
Job |
queueIn(Job job,
long millis) |
void |
resume() |
void |
setExceptionHandler(@Nullable JobProcessorExceptionHandler handler) |
void |
start() |
void |
suspend() |
void |
waitForJobs(long spinTimeout) |
void |
waitForTimedJobs(long spinTimeout) |
void start()
void finish()
boolean isFinished()
void setExceptionHandler(@Nullable
@Nullable JobProcessorExceptionHandler handler)
@Nullable @Nullable JobProcessorExceptionHandler getExceptionHandler()
boolean queue(Job job)
int pendingJobs()
int pendingTimedJobs()
void waitForJobs(long spinTimeout)
void waitForTimedJobs(long spinTimeout)
void suspend()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionvoid resume()
boolean isSuspended()
void beforeProcessingJob(@NotNull
@NotNull Job job)
void afterProcessingJob(@NotNull
@NotNull Job job)
@Nullable @Nullable Job getCurrentJob()
long getCurrentJobStartedAt()
@NotNull @NotNull java.lang.Iterable<Job> getPendingJobs()