BaseClient
Base client. This can be used to build Client implementations on top with the HTTP client of your choice.
Inheritors
Types
Link copied to clipboard
class DefaultSerdeFactory
Functions
Link copied to clipboard
Create a new AwakeableHandle for the provided identifier.
Link copied to clipboard
Create a default JDK client.
Link copied to clipboard
open fun <Res> idempotentInvocationHandle(target: Target, idempotencyKey: String, clazz: Class<Res>): Client.IdempotentInvocationHandle<Res>
open fun <Res> idempotentInvocationHandle(target: Target, idempotencyKey: String, resTypeTag: TypeTag<Res>): Client.IdempotentInvocationHandle<Res>
Create a new IdempotentInvocationHandle for the provided target and idempotency key.
Link copied to clipboard
open fun <Res> invocationHandle(invocationId: String, clazz: Class<Res>): Client.InvocationHandle<Res>
open fun <Res> invocationHandle(invocationId: String, resTypeTag: TypeTag<Res>): Client.InvocationHandle<Res>
Create a new InvocationHandle for the provided invocation identifier.
Link copied to clipboard
Link copied to clipboard
EXPERIMENTAL API: Advanced API to invoke a Restate service from the ingress with full control.
Link copied to clipboard
Submit a workflow.
open fun <Req, Res> submit(request: WorkflowRequest<Req, Res>, @Nullable delay: @Nullable Duration): SendResponse<Res>
Submit a workflow, optionally providing an execution delay to wait for.
Link copied to clipboard
open fun <Req, Res> submitAsync(request: WorkflowRequest<Req, Res>): CompletableFuture<SendResponse<Res>>
open fun <Req, Res> submitAsync(request: WorkflowRequest<Req, Res>, @Nullable delay: @Nullable Duration): CompletableFuture<SendResponse<Res>>
Future version of submit
Link copied to clipboard
Link copied to clipboard
@ApiStatus.Experimental
EXPERIMENTAL API: Advanced API to invoke a Restate Virtual Object from the ingress with full control.
Link copied to clipboard
@ApiStatus.Experimental
EXPERIMENTAL API: Advanced API to invoke a Restate Workflow from the ingress with full control.
open fun <Res> workflowHandle(workflowName: String, workflowId: String, clazz: Class<Res>): Client.WorkflowHandle<Res>
open fun <Res> workflowHandle(workflowName: String, workflowId: String, resTypeTag: TypeTag<Res>): Client.WorkflowHandle<Res>
Create a new WorkflowHandle for the provided workflow name and identifier.