Class ComplexMapExample
java.lang.Object
software.amazon.lambda.durable.DurableHandler<Integer,String>
software.amazon.lambda.durable.examples.map.ComplexMapExample
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
Example demonstrating advanced map features: wait operations inside branches, error handling, and early termination.
- Concurrent map with step + wait + step inside each branch — simulates multi-stage order processing with a cooldown between stages
- Early termination with
minSuccessful(2)— finds 2 healthy servers then stops
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleRequest(Integer input, DurableContext context) Handle the durable execution.Methods inherited from class software.amazon.lambda.durable.DurableHandler
createConfiguration, getConfiguration, handleRequest
-
Constructor Details
-
ComplexMapExample
public ComplexMapExample()
-
-
Method Details
-
handleRequest
Description copied from class:DurableHandlerHandle the durable execution.- Specified by:
handleRequestin classDurableHandler<Integer,String> - Parameters:
input- User inputcontext- Durable context for operations- Returns:
- Result
-