BackgroundJobStatus<T>BackgroundJobStatusDecoratorpublic interface BackgroundJobInfo
BackgroundJob. | Modifier and Type | Interface | Description |
|---|---|---|
static class |
BackgroundJobInfo.State |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getDescription() |
The human-readable description for this job.
|
String |
getId() |
The unique identifier assigned to this job by the scheduler.
|
Class<?> |
getJobClass() |
The class implementing the actual work.
|
long |
getLastModified() |
|
long |
getStartTime() |
|
BackgroundJobInfo.State |
getState() |
|
int |
getWorkDone() |
Get the amount of work that is already done.
|
int |
getWorkTotal() |
Get the total amount of work.
|
BackgroundJobInfo.State getState()
BackgroundJobInfo.State of the job.int getWorkDone()
getWorkTotal() to put this into relation.int getWorkTotal()
BackgroundJob -implementations will typically provide a value in an early stage of
processing. They are however not obliged to do so, so the expected total
amount may not be known yet. In particular, BackgroundJob are
allowed to to update this value if new information about the total amount
of work to be done becomes available.String getId()
String getDescription()
Class<?> getJobClass()
BackgroundJob, but Schedulers may choose a
different approach.long getLastModified()
long getStartTime()
Copyright © 2018 tarent solutions GmbH, Germany. All rights reserved.