public interface TaskToken
Represents a URL path to poll to get the results of an Asynchronous Request.
| Modifier and Type | Method and Description |
|---|---|
static TaskTokenBuilder |
builder() |
static TaskTokenBuilder |
builder(TaskToken template) |
@NotNull String |
getTaskId()
The ID for the task.
|
@NotNull String |
getUriPath()
The URI path to poll for the status of the task.
|
static TaskToken |
of() |
static TaskToken |
of(TaskToken template) |
void |
setTaskId(String taskId) |
void |
setUriPath(String uriPath) |
default <T> T |
withTaskToken(Function<TaskToken,T> helper) |
@NotNull @NotNull String getTaskId()
The ID for the task. Used to find the status of the task.
@NotNull @NotNull String getUriPath()
The URI path to poll for the status of the task.
void setTaskId(String taskId)
void setUriPath(String uriPath)
static TaskToken of()
static TaskTokenBuilder builder()
static TaskTokenBuilder builder(TaskToken template)