public class TaskApi extends Object
| Constructor and Description |
|---|
TaskApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Object> |
cancelTask(String taskId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Cancel task
Cancels a task.
|
io.reactivex.Single<TaskProgressBeanObject> |
getTask(String taskId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get task
Returns the status of a long-running asynchronous task.
|
public io.reactivex.Single<Object> cancelTask(String taskId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Cancels a task.
Permissions required: either of:
taskId - The ID of the task.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<TaskProgressBeanObject> getTask(String taskId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the status of a long-running asynchronous task.
When a task has finished, this operation returns the JSON blob applicable to the task. See the documentation of the operation that created the task for details. Task details are not permanently retained. As of September 2019, details are retained for 14 days although this period may change without notice.
Permissions required: either of:
taskId - The ID of the task.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.