@Path(value="experimental-async-calls") public class ExperimentalAsyncCallsResource extends Object
Constructor and Description |
---|
ExperimentalAsyncCallsResource() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String id)
Sets the cancel request state.
|
AsyncCallDto |
get(String id,
boolean needPartialResult)
Status of an asynchronous call.
|
List<String> |
getIds()
List of asynchronous call IDs.
|
@GET @Path(value="/{id}") @Produces(value="application/json") public AsyncCallDto get(@PathParam(value="id") String id, @QueryParam(value="need-partial-result") @DefaultValue(value="false") boolean needPartialResult)
id
- ID of the asynchronous call. ID is assigned by the REST API endpoint used to launch the asynchronous
task.needPartialResult
- if true then result may contain partial result.result
and partialResult
fields depend on the
represented task. Type of these fields are determined by the REST API endpoint used to launch the task.RuntimeException
- directly from from call if failed@POST @Path(value="/{id}/cancel") public void cancel(@PathParam(value="id") String id)
id
- ID of the asynchronous call. ID is assigned by the REST API endpoint used to launch the asynchronous
task.@GET @Path(value="ids") @Produces(value="application/json") public List<String> getIds()
WuiForbiddenException
- When async call ID listing is disabled (See ServerFeature.ASYNC_CALL_ID_LIST
).