T
- Result/partyal result type.public class AsyncCallDto<T> extends Object
Modifier and Type | Field and Description |
---|---|
ErrorReport |
error
Error object if the call thrown an exception or
null . |
String |
id
ID of the associated call.
|
T |
partialResult
Partial result if possible/requested to return or
null . |
T |
result
Call result object or
null if it is not available yet. |
TaskDto |
task
Status of the underlying task.
|
Constructor and Description |
---|
AsyncCallDto() |
public String id
public TaskDto task
public T result
null
if it is not available yet.
The result object type depends on the REST API endpoint used to launch the asynchronous call. The type is
the same as the result type of the endpoint synchronous counterpart. (For example result type for calls launched
by /rest/descriptors/{desc}/find-most-similars-async
is the same as the result of call
/rest/descriptors/{desc}/find-most-similars
.public T partialResult
null
.public ErrorReport error
null
.