Class LazyWorkflowUpdateHandleImpl<T>
java.lang.Object
io.temporal.internal.client.LazyWorkflowUpdateHandleImpl<T>
- All Implemented Interfaces:
WorkflowUpdateHandle<T>
public final class LazyWorkflowUpdateHandleImpl<T>
extends Object
implements WorkflowUpdateHandle<T>
-
Constructor Summary
ConstructorsConstructorDescriptionLazyWorkflowUpdateHandleImpl(WorkflowClientCallsInterceptor workflowClientInvoker, String workflowType, String updateName, String id, io.temporal.api.common.v1.WorkflowExecution execution, Class<T> resultClass, Type resultType) -
Method Summary
Modifier and TypeMethodDescriptionio.temporal.api.common.v1.WorkflowExecutionGets the workflow execution this update request was sent to.getId()Gets the unique ID of this update.Returns the result of the workflow update.Returns the result of the workflow update.Returns aCompletableFuturewith the update workflow execution request result, potentially waiting for the update to complete.getResultAsync(long timeout, TimeUnit unit) Returns aCompletableFuturewith the update workflow execution request result, potentially waiting for the update to complete.
-
Constructor Details
-
LazyWorkflowUpdateHandleImpl
-
-
Method Details
-
getExecution
public io.temporal.api.common.v1.WorkflowExecution getExecution()Description copied from interface:WorkflowUpdateHandleGets the workflow execution this update request was sent to.- Specified by:
getExecutionin interfaceWorkflowUpdateHandle<T>- Returns:
- the workflow execution this update was sent to.
-
getId
Description copied from interface:WorkflowUpdateHandleGets the unique ID of this update.- Specified by:
getIdin interfaceWorkflowUpdateHandle<T>- Returns:
- the updates ID.
-
getResultAsync
Description copied from interface:WorkflowUpdateHandleReturns aCompletableFuturewith the update workflow execution request result, potentially waiting for the update to complete.- Specified by:
getResultAsyncin interfaceWorkflowUpdateHandle<T>- Parameters:
timeout- maximum time to wait and perform the background long pollingunit- unit of timeout- Returns:
- future completed with the result of the update or an exception
-
getResult
Description copied from interface:WorkflowUpdateHandleReturns the result of the workflow update.- Specified by:
getResultin interfaceWorkflowUpdateHandle<T>- Returns:
- the result of the workflow update
-
getResult
Description copied from interface:WorkflowUpdateHandleReturns the result of the workflow update.- Specified by:
getResultin interfaceWorkflowUpdateHandle<T>- Parameters:
timeout- maximum time to wait and perform the background long pollingunit- unit of timeout- Returns:
- the result of the workflow update
-
getResultAsync
Description copied from interface:WorkflowUpdateHandleReturns aCompletableFuturewith the update workflow execution request result, potentially waiting for the update to complete.- Specified by:
getResultAsyncin interfaceWorkflowUpdateHandle<T>- Returns:
- future completed with the result of the update or an exception
-