Class AsynchronousOperationResult<V>
- java.lang.Object
-
- org.apache.flink.runtime.rest.handler.async.AsynchronousOperationResult<V>
-
- Type Parameters:
V
- type of the result value
- All Implemented Interfaces:
AsynchronouslyCreatedResource<V>
,ResponseBody
public class AsynchronousOperationResult<V> extends Object implements AsynchronouslyCreatedResource<V>
Result of an asynchronous operation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_NAME_OPERATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V> AsynchronousOperationResult<V>
completed(V value)
static <V> AsynchronousOperationResult<V>
inProgress()
QueueStatus
queueStatus()
Returns the status of the resource creation.V
resource()
Returns the resource if it is available,null
otherwise.
-
-
-
Field Detail
-
FIELD_NAME_OPERATION
public static final String FIELD_NAME_OPERATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
queueStatus
public QueueStatus queueStatus()
Description copied from interface:AsynchronouslyCreatedResource
Returns the status of the resource creation.- Specified by:
queueStatus
in interfaceAsynchronouslyCreatedResource<V>
-
resource
@Nullable public V resource()
Description copied from interface:AsynchronouslyCreatedResource
Returns the resource if it is available,null
otherwise.- Specified by:
resource
in interfaceAsynchronouslyCreatedResource<V>
-
inProgress
public static <V> AsynchronousOperationResult<V> inProgress()
-
completed
public static <V> AsynchronousOperationResult<V> completed(V value)
-
-