Class CompletedWorkflowUpdateHandleImpl<T>

java.lang.Object
io.temporal.internal.client.CompletedWorkflowUpdateHandleImpl<T>
All Implemented Interfaces:
WorkflowUpdateHandle<T>

public final class CompletedWorkflowUpdateHandleImpl<T> extends Object implements WorkflowUpdateHandle<T>
  • Constructor Details

    • CompletedWorkflowUpdateHandleImpl

      public CompletedWorkflowUpdateHandleImpl(String id, io.temporal.api.common.v1.WorkflowExecution execution, T result)
    • CompletedWorkflowUpdateHandleImpl

      public CompletedWorkflowUpdateHandleImpl(String id, io.temporal.api.common.v1.WorkflowExecution execution, WorkflowUpdateException ex)
  • Method Details

    • getExecution

      public io.temporal.api.common.v1.WorkflowExecution getExecution()
      Description copied from interface: WorkflowUpdateHandle
      Gets the workflow execution this update request was sent to.
      Specified by:
      getExecution in interface WorkflowUpdateHandle<T>
      Returns:
      the workflow execution this update was sent to.
    • getId

      public String getId()
      Description copied from interface: WorkflowUpdateHandle
      Gets the unique ID of this update.
      Specified by:
      getId in interface WorkflowUpdateHandle<T>
      Returns:
      the updates ID.
    • getResult

      public T getResult()
      Description copied from interface: WorkflowUpdateHandle
      Returns the result of the workflow update.
      Specified by:
      getResult in interface WorkflowUpdateHandle<T>
      Returns:
      the result of the workflow update
    • getResult

      public T getResult(long timeout, TimeUnit unit)
      Description copied from interface: WorkflowUpdateHandle
      Returns the result of the workflow update.
      Specified by:
      getResult in interface WorkflowUpdateHandle<T>
      Parameters:
      timeout - maximum time to wait and perform the background long polling
      unit - unit of timeout
      Returns:
      the result of the workflow update
    • getResultAsync

      public CompletableFuture<T> getResultAsync()
      Description copied from interface: WorkflowUpdateHandle
      Returns a CompletableFuture with the update workflow execution request result, potentially waiting for the update to complete.
      Specified by:
      getResultAsync in interface WorkflowUpdateHandle<T>
      Returns:
      future completed with the result of the update or an exception
    • getResultAsync

      public CompletableFuture<T> getResultAsync(long timeout, TimeUnit unit)
      Description copied from interface: WorkflowUpdateHandle
      Returns a CompletableFuture with the update workflow execution request result, potentially waiting for the update to complete.
      Specified by:
      getResultAsync in interface WorkflowUpdateHandle<T>
      Parameters:
      timeout - maximum time to wait and perform the background long polling
      unit - unit of timeout
      Returns:
      future completed with the result of the update or an exception