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 StringFIELD_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()QueueStatusqueueStatus()Returns the status of the resource creation.Vresource()Returns the resource if it is available,nullotherwise.
-
-
-
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:AsynchronouslyCreatedResourceReturns the status of the resource creation.- Specified by:
queueStatusin interfaceAsynchronouslyCreatedResource<V>
-
resource
@Nullable public V resource()
Description copied from interface:AsynchronouslyCreatedResourceReturns the resource if it is available,nullotherwise.- Specified by:
resourcein interfaceAsynchronouslyCreatedResource<V>
-
inProgress
public static <V> AsynchronousOperationResult<V> inProgress()
-
completed
public static <V> AsynchronousOperationResult<V> completed(V value)
-
-