|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Role @Unstable public interface Job
A Job produced from a Request
and exposing a JobStatus
.
Method Summary | |
---|---|
Request |
getRequest()
|
JobStatus |
getStatus()
|
String |
getType()
|
void |
initialize(Request request)
|
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)
Deprecated. since 5.1M2 use initialize(Request) then Runnable.run() instead |
Methods inherited from interface java.lang.Runnable |
---|
run |
Method Detail |
---|
String getType()
JobStatus getStatus()
Request getRequest()
@Deprecated void start(Request request)
initialize(Request)
then Runnable.run()
instead
request
- start the job with provided requestvoid initialize(Request request)
request
- configure the jobvoid 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 |