Class InvocationApi
java.lang.Object
dev.restate.admin.api.InvocationApi
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteInvocation(String invocationId, DeletionMode mode) Deprecated.Delete an invocation Delete the given invocation.voiddeleteInvocation(String invocationId, DeletionMode mode, Map<String, String> headers) Deprecated.Delete an invocation Delete the given invocation.deleteInvocationWithHttpInfo(String invocationId, DeletionMode mode) Deprecated.Delete an invocation Delete the given invocation.deleteInvocationWithHttpInfo(String invocationId, DeletionMode mode, Map<String, String> headers) Deprecated.Delete an invocation Delete the given invocation.downloadFileFromResponse(HttpResponse<InputStream> response, InputStream responseBody) Deprecated.Download file from the given response.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) Deprecated.
-
Constructor Details
-
InvocationApi
public InvocationApi()Deprecated. -
InvocationApi
Deprecated.
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException Deprecated.- Throws:
IOException
-
downloadFileFromResponse
public File downloadFileFromResponse(HttpResponse<InputStream> response, InputStream responseBody) throws ApiException Deprecated.Download file from the given response.- Parameters:
response- Response- Returns:
- File
- Throws:
ApiException- If fail to read file content from response and write to disk
-
deleteInvocation
public void deleteInvocation(@Nonnull String invocationId, @Nullable DeletionMode mode) throws ApiException Deprecated.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
-
deleteInvocation
public void deleteInvocation(@Nonnull String invocationId, @Nullable DeletionMode mode, Map<String, String> headers) throws ApiExceptionDeprecated.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)headers- Optional headers to include in the request- Throws:
ApiException- if fails to make API call
-
deleteInvocationWithHttpInfo
public ApiResponse<Void> deleteInvocationWithHttpInfo(@Nonnull String invocationId, @Nullable DeletionMode mode) throws ApiException Deprecated.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
-
deleteInvocationWithHttpInfo
public ApiResponse<Void> deleteInvocationWithHttpInfo(@Nonnull String invocationId, @Nullable DeletionMode mode, Map<String, String> headers) throws ApiExceptionDeprecated.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)headers- Optional headers to include in the request- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-