Class WaitForConditionExample

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

public class WaitForConditionExample extends DurableHandler<Integer,Integer>
Example demonstrating the waitForCondition operation.

This handler polls a condition function until it signals completion:

  1. The attempt count is used as a state (replay safe)
  2. Fails and retries until the attempt count reaches the given threshold, and then succeeds
  • Constructor Details

    • WaitForConditionExample

      public WaitForConditionExample()
  • Method Details