public class JobExecutionResultResponseBody extends Object implements ResponseBody, AsynchronouslyCreatedResource<JobResult>
JobExecutionResultHandler
Constructor and Description |
---|
JobExecutionResultResponseBody(QueueStatus status,
JobResult jobExecutionResult) |
Modifier and Type | Method and Description |
---|---|
static JobExecutionResultResponseBody |
created(JobResult jobExecutionResult) |
JobResult |
getJobExecutionResult() |
QueueStatus |
getStatus() |
static JobExecutionResultResponseBody |
inProgress() |
QueueStatus |
queueStatus()
Returns the status of the resource creation.
|
JobResult |
resource()
Returns the resource if it is available,
null otherwise. |
public JobExecutionResultResponseBody(QueueStatus status, @Nullable JobResult jobExecutionResult)
public static JobExecutionResultResponseBody inProgress()
public static JobExecutionResultResponseBody created(JobResult jobExecutionResult)
public QueueStatus getStatus()
public QueueStatus queueStatus()
AsynchronouslyCreatedResource
queueStatus
in interface AsynchronouslyCreatedResource<JobResult>
public JobResult resource()
AsynchronouslyCreatedResource
null
otherwise.resource
in interface AsynchronouslyCreatedResource<JobResult>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.