Class InvocationApi

java.lang.Object
dev.restate.admin.api.InvocationApi

public class InvocationApi extends Object
  • Constructor Details

    • InvocationApi

      public InvocationApi()
    • InvocationApi

      public InvocationApi(ApiClient apiClient)
  • Method Details

    • getApiException

      protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException
      Throws:
      IOException
    • terminateInvocation

      public void terminateInvocation(String invocationId, TerminationMode mode) throws ApiException
      Terminate an invocation Terminate the given invocation. By default, an invocation is terminated by gracefully cancelling it. This ensures virtual object state consistency. Alternatively, an invocation can be killed which does not guarantee consistency for virtual object instance state, in-flight invocations to other services, etc.
      Parameters:
      invocationId - Invocation identifier. (required)
      mode - If cancel, it will gracefully terminate the invocation. If kill, it will terminate the invocation with a hard stop. (optional)
      Throws:
      ApiException - if fails to make API call
    • terminateInvocationWithHttpInfo

      public ApiResponse<Void> terminateInvocationWithHttpInfo(String invocationId, TerminationMode mode) throws ApiException
      Terminate an invocation Terminate the given invocation. By default, an invocation is terminated by gracefully cancelling it. This ensures virtual object state consistency. Alternatively, an invocation can be killed which does not guarantee consistency for virtual object instance state, in-flight invocations to other services, etc.
      Parameters:
      invocationId - Invocation identifier. (required)
      mode - If cancel, it will gracefully terminate the invocation. If kill, it will terminate the invocation with a hard stop. (optional)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - if fails to make API call