Package dev.restate.sdk.client
Interface Client
- All Known Implementing Classes:
DefaultClient
public interface Client
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
This class represents a handle to an Awakeable.static interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newClient.AwakeableHandle
for the provided identifier.default <Req,
Res> Res default <Req,
Res> Res call
(Target target, Serde<Req> reqSerde, Serde<Res> resSerde, Req req, RequestOptions options) default <Req,
Res> CompletableFuture <Res> <Req,
Res> CompletableFuture <Res> callAsync
(Target target, Serde<Req> reqSerde, Serde<Res> resSerde, Req req, RequestOptions options) static Client
static Client
<Res> Client.IdempotentInvocationHandle
<Res> idempotentInvocationHandle
(Target target, String idempotencyKey, Serde<Res> resSerde) <Res> Client.InvocationHandle
<Res> invocationHandle
(String invocationId, Serde<Res> resSerde) default <Req> SendResponse
default <Req> SendResponse
default <Req> SendResponse
send
(Target target, Serde<Req> reqSerde, Req req, @Nullable Duration delay, RequestOptions options) default <Req> CompletableFuture
<SendResponse> default <Req> CompletableFuture
<SendResponse> <Req> CompletableFuture
<SendResponse> sendAsync
(Target target, Serde<Req> reqSerde, Req req, @Nullable Duration delay, RequestOptions options) <Res> Client.WorkflowHandle
<Res> workflowHandle
(String workflowName, String workflowId, Serde<Res> resSerde)
-
Method Details
-
callAsync
<Req,Res> CompletableFuture<Res> callAsync(Target target, Serde<Req> reqSerde, Serde<Res> resSerde, Req req, RequestOptions options) -
callAsync
default <Req,Res> CompletableFuture<Res> callAsync(Target target, Serde<Req> reqSerde, Serde<Res> resSerde, Req req) -
call
default <Req,Res> Res call(Target target, Serde<Req> reqSerde, Serde<Res> resSerde, Req req, RequestOptions options) throws IngressException - Throws:
IngressException
-
call
default <Req,Res> Res call(Target target, Serde<Req> reqSerde, Serde<Res> resSerde, Req req) throws IngressException - Throws:
IngressException
-
sendAsync
<Req> CompletableFuture<SendResponse> sendAsync(Target target, Serde<Req> reqSerde, Req req, @Nullable Duration delay, RequestOptions options) -
sendAsync
default <Req> CompletableFuture<SendResponse> sendAsync(Target target, Serde<Req> reqSerde, Req req, @Nullable Duration delay) -
sendAsync
default <Req> CompletableFuture<SendResponse> sendAsync(Target target, Serde<Req> reqSerde, Req req) -
send
default <Req> SendResponse send(Target target, Serde<Req> reqSerde, Req req, @Nullable Duration delay, RequestOptions options) throws IngressException - Throws:
IngressException
-
send
default <Req> SendResponse send(Target target, Serde<Req> reqSerde, Req req, @Nullable Duration delay) throws IngressException - Throws:
IngressException
-
send
default <Req> SendResponse send(Target target, Serde<Req> reqSerde, Req req) throws IngressException - Throws:
IngressException
-
awakeableHandle
Create a newClient.AwakeableHandle
for the provided identifier. You can use it toClient.AwakeableHandle.resolve(Serde, Object)
orClient.AwakeableHandle.reject(String)
an Awakeable from the ingress. -
invocationHandle
-
idempotentInvocationHandle
<Res> Client.IdempotentInvocationHandle<Res> idempotentInvocationHandle(Target target, String idempotencyKey, Serde<Res> resSerde) -
workflowHandle
<Res> Client.WorkflowHandle<Res> workflowHandle(String workflowName, String workflowId, Serde<Res> resSerde) -
connect
-
connect
-