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

public class WaitAtLeastExample extends DurableHandler<GreetingRequest,String>
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