Class InvocationApi

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

public class InvocationApi extends Object
  • Constructor Details Link icon

    • InvocationApi Link icon

      public InvocationApi()
    • InvocationApi Link icon

      public InvocationApi(ApiClient apiClient)
  • Method Details Link icon

    • getApiException Link icon

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

      public void deleteInvocation(String invocationId, DeletionMode mode) throws ApiException
      Delete an invocation Delete 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. A stored completed invocation can also be purged
      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. If purge, it will only cleanup the response for completed invocations, and leave unaffected an in-flight invocation. (optional)
      Throws:
      ApiException - if fails to make API call
    • deleteInvocationWithHttpInfo Link icon

      public ApiResponse<Void> deleteInvocationWithHttpInfo(String invocationId, DeletionMode mode) throws ApiException
      Delete an invocation Delete 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. A stored completed invocation can also be purged
      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. If purge, it will only cleanup the response for completed invocations, and leave unaffected an in-flight invocation. (optional)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - if fails to make API call