Class LambdaDurableFunctionsClient
java.lang.Object
software.amazon.lambda.durable.client.LambdaDurableFunctionsClient
- All Implemented Interfaces:
DurableExecutionClient
Default implementation of
DurableExecutionClient backed by the AWS Lambda SDK client.
Translates SDK-level checkpoint and state-retrieval calls into the corresponding LambdaClient API
requests.
-
Constructor Summary
ConstructorsConstructorDescriptionLambdaDurableFunctionsClient(software.amazon.awssdk.services.lambda.LambdaClient lambdaClient) Creates a LambdaDurableFunctionsClient with the provided LambdaClient. -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.lambda.model.CheckpointDurableExecutionResponsecheckpoint(String arn, String token, List<software.amazon.awssdk.services.lambda.model.OperationUpdate> updates) Sends a batch of operation updates to the backend.software.amazon.awssdk.services.lambda.model.GetDurableExecutionStateResponsegetExecutionState(String arn, String checkpointToken, String marker) Retrieves the current execution state from the backend.
-
Constructor Details
-
LambdaDurableFunctionsClient
public LambdaDurableFunctionsClient(software.amazon.awssdk.services.lambda.LambdaClient lambdaClient) Creates a LambdaDurableFunctionsClient with the provided LambdaClient.- Parameters:
lambdaClient- LambdaClient instance to use for backend communication- Throws:
NullPointerException- if lambdaClient is null
-
-
Method Details
-
checkpoint
public software.amazon.awssdk.services.lambda.model.CheckpointDurableExecutionResponse checkpoint(String arn, String token, List<software.amazon.awssdk.services.lambda.model.OperationUpdate> updates) Description copied from interface:DurableExecutionClientSends a batch of operation updates to the backend.- Specified by:
checkpointin interfaceDurableExecutionClient- Parameters:
arn- the durable execution ARNtoken- the checkpoint tokenupdates- the operation updates to send- Returns:
- the checkpoint response
-
getExecutionState
public software.amazon.awssdk.services.lambda.model.GetDurableExecutionStateResponse getExecutionState(String arn, String checkpointToken, String marker) Description copied from interface:DurableExecutionClientRetrieves the current execution state from the backend.- Specified by:
getExecutionStatein interfaceDurableExecutionClient- Parameters:
arn- the durable execution ARNcheckpointToken- the checkpoint tokenmarker- pagination marker, or null for the first page- Returns:
- the execution state response
-