Class WaitAtLeastExample
java.lang.Object
software.amazon.lambda.durable.DurableHandler<GreetingRequest,String>
software.amazon.lambda.durable.examples.WaitAtLeastExample
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
Example demonstrating concurrent stepAsync() with wait() operations.
This example shows suspension behavior with pending async steps:
- stepAsync() starts a background operation (takes 2 seconds)
- wait() is called immediately (3 second duration)
- The step completes successfully before suspension
- Execution suspends for the wait time
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleRequest(GreetingRequest input, DurableContext context) Handle the durable execution.Methods inherited from class software.amazon.lambda.durable.DurableHandler
createConfiguration, createObjectMapper, getConfiguration, handleRequest
-
Constructor Details
-
WaitAtLeastExample
public WaitAtLeastExample()
-
-
Method Details
-
handleRequest
Description copied from class:DurableHandlerHandle the durable execution.- Specified by:
handleRequestin classDurableHandler<GreetingRequest,String> - Parameters:
input- User inputcontext- Durable context for operations- Returns:
- Result
-