Class ConcurrentWaitForConditionExample

java.lang.Object
software.amazon.lambda.durable.DurableHandler<ConcurrentWaitForConditionExample.Input,String>
software.amazon.lambda.durable.examples.wait.ConcurrentWaitForConditionExample
All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler

public class ConcurrentWaitForConditionExample extends DurableHandler<ConcurrentWaitForConditionExample.Input,String>
Example demonstrating concurrent waitForCondition operations using map.

Runs many (totalOperations) waitForCondition operations concurrently (maxConcurrency). Each operation:

  1. Uses attempt count as state (replay-safe).
  2. Fails and retries until the attempt count reaches the given threshold, and then succeeds