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

public class ComplexMapExample extends DurableHandler<Integer,String>
Example demonstrating advanced map features: wait operations inside branches, error handling, and early termination.
  1. Concurrent map with step + wait + step inside each branch — simulates multi-stage order processing with a cooldown between stages
  2. Early termination with minSuccessful(2) — finds 2 healthy servers then stops