public interface JobStatus
Modifier and Type | Interface and Description |
---|---|
static class |
JobStatus.State
Job status.
|
Modifier and Type | Method and Description |
---|---|
void |
answered()
Indicate that the question has been answered.
|
void |
ask(Object question) |
default boolean |
ask(Object question,
long time,
TimeUnit unit) |
Date |
getEndDate() |
default Throwable |
getError() |
LogQueue |
getLog() |
List<LogEvent> |
getLog(LogLevel level)
Deprecated.
since 4.1RC1 use
LogQueue.getLogs(LogLevel) instead |
JobProgress |
getProgress() |
Object |
getQuestion() |
Request |
getRequest() |
Date |
getStartDate() |
JobStatus.State |
getState() |
JobStatus.State getState()
Request getRequest()
LogQueue getLog()
JobProgress getProgress()
void ask(Object question) throws InterruptedException
question
- the question to ask as a Java beanInterruptedException
- if the current thread is interrupted (and interruption of thread suspension is
supported)default boolean ask(Object question, long time, TimeUnit unit) throws InterruptedException
question
- the question to ask as a Java beantime
- 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)Object getQuestion()
void answered()
Date getStartDate()
Date getEndDate()
@Deprecated List<LogEvent> getLog(LogLevel level)
LogQueue.getLogs(LogLevel)
insteadlevel
- the level of the logCopyright © 2004–2017 XWiki. All rights reserved.