Package dev.restate.admin.api
Class InvocationApi
java.lang.Object
dev.restate.admin.api.InvocationApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ApiException
getApiException
(String operationId, HttpResponse<InputStream> response) void
terminateInvocation
(String invocationId, TerminationMode mode) Terminate an invocation Terminate the given invocation.terminateInvocationWithHttpInfo
(String invocationId, TerminationMode mode) Terminate an invocation Terminate the given invocation.
-
Constructor Details
-
InvocationApi
public InvocationApi() -
InvocationApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
terminateInvocation
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
-