|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface Job
A Job produced from a Request and exposing a JobStatus.
| Method Summary | |
|---|---|
Request |
getRequest()
|
JobStatus |
getStatus()
|
String |
getType()
|
void |
join()
Causes the current thread to wait until this job has FINSHED state. |
boolean |
join(long time,
TimeUnit unit)
Causes the current thread to wait until this job has FINSHED state. |
void |
start(Request request)
|
| Method Detail |
|---|
String getType()
JobStatus getStatus()
Request getRequest()
void start(Request request)
request - start the job with provided request
void join()
throws InterruptedException
InterruptedException - if any thread has interrupted the current thread. The interrupted status of
the current thread is cleared when this exception is thrown.
boolean join(long time,
TimeUnit unit)
throws InterruptedException
time - the maximum time to waitunit - the time unit of the time argument
false if the waiting time detectably elapsed before return from the method, else true
InterruptedException - if the current thread is interrupted (and interruption of thread suspension is
supported)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||