@ThreadSafe public final class RunningJobImpl extends Object implements RunningJob
| Constructor and Description |
|---|
RunningJobImpl(Date startTime,
JobId jobId,
JobConfig jobConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Requests that the job be cancelled.
|
boolean |
equals(Object o) |
JobConfig |
getJobConfig() |
JobId |
getJobId() |
Date |
getStartTime() |
int |
hashCode() |
boolean |
isCancellationRequested() |
String |
toString() |
@Nonnull public Date getStartTime()
getStartTime in interface JobRunnerRequest@Nonnull public JobId getJobId()
getJobId in interface JobRunnerRequest@Nonnull public JobConfig getJobConfig()
getJobConfig in interface JobRunnerRequestpublic boolean isCancellationRequested()
isCancellationRequested in interface JobRunnerRequestpublic void cancel()
RunningJob
Calling this method changes the return value of JobRunnerRequest.isCancellationRequested() permanently
to true. It has no other effect; in particular, it does not interrupt the thread that
is running the job. It is the responsibility of the job runner implementation to cooperatively
check for an respond to the JobRunnerRequest.isCancellationRequested() flag.
cancel in interface RunningJobCopyright © 2018 Atlassian. All rights reserved.