@Role public interface Job extends Runnable
Modifier and Type | Method and Description |
---|---|
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 |
String getType()
JobStatus getStatus()
Request getRequest()
@Deprecated void start(Request request)
initialize(Request)
then Runnable.run()
insteadrequest
- 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
argumentfalse
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)Copyright © 2004–2021 XWiki. All rights reserved.