public interface JobExecutor
| Modifier and Type | Interface and Description |
|---|---|
static class |
JobExecutor.State
States of the job executor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
end(boolean now)
Shutdown this JobExecutor.
|
ExceptionHandler |
getExceptionHandler()
The current exception handler.
|
JobFactory |
getJobFactory()
The job factory.
|
boolean |
isProcessingJob()
Returns whether this JobExecutor is currently processing a job.
|
boolean |
isShutdown()
Returns whether this JobExecutor is either shutdown or in the process of shutting down.
|
void |
join(long millis)
Wait for this JobExecutor to complete.
|
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
Set this JobExecutor's exception handler to the given handler.
|
JobFactory getJobFactory()
ExceptionHandler getExceptionHandler()
void setExceptionHandler(ExceptionHandler exceptionHandler)
exceptionHandler - the exception handler to usevoid end(boolean now)
now - if true, an effort will be made to stop any job in progressboolean isShutdown()
boolean isProcessingJob()
void join(long millis) throws InterruptedException
end(boolean).millis - the time to wait in millisecondsInterruptedException - if any thread has interrupted the current threadCopyright © 2011-2015. All Rights Reserved.