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() |
default String |
getJobType() |
org.xwiki.logging.LogQueue |
getLog()
Deprecated.
since 11.9RC1, use
getLogTail() instead |
List<org.xwiki.logging.event.LogEvent> |
getLog(org.xwiki.logging.LogLevel level)
Deprecated.
since 4.1RC1 use
LogQueue.getLogs(LogLevel) instead |
default org.xwiki.logging.tail.LogTail |
getLogTail() |
JobProgress |
getProgress() |
Object |
getQuestion() |
default long |
getQuestionTimeLeft(TimeUnit unit) |
Request |
getRequest() |
Date |
getStartDate() |
JobStatus.State |
getState() |
default boolean |
isIsolated() |
default boolean |
isSerialized() |
default String getJobType()
JobStatus.State getState()
Request getRequest()
default org.xwiki.logging.tail.LogTail getLogTail()
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)default long getQuestionTimeLeft(TimeUnit unit)
unit
- the time unit of the returned valueObject getQuestion()
void answered()
Date getStartDate()
Date getEndDate()
default boolean isSerialized()
default boolean isIsolated()
@Deprecated org.xwiki.logging.LogQueue getLog()
getLogTail()
instead@Deprecated List<org.xwiki.logging.event.LogEvent> getLog(org.xwiki.logging.LogLevel level)
LogQueue.getLogs(LogLevel)
insteadlevel
- the level of the logCopyright © 2004–2021 XWiki. All rights reserved.