V
- type of the result valuepublic class AsynchronousOperationResult<V> extends Object implements AsynchronouslyCreatedResource<V>
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME_OPERATION |
Modifier and Type | Method and 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. |
public static final String FIELD_NAME_OPERATION
public QueueStatus queueStatus()
AsynchronouslyCreatedResource
queueStatus
in interface AsynchronouslyCreatedResource<V>
@Nullable public V resource()
AsynchronouslyCreatedResource
null
otherwise.resource
in interface AsynchronouslyCreatedResource<V>
public static <V> AsynchronousOperationResult<V> inProgress()
public static <V> AsynchronousOperationResult<V> completed(V value)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.