Class WaitAtLeastInProcessExample

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

public class WaitAtLeastInProcessExample extends DurableHandler<GreetingRequest,String>
Example demonstrating concurrent stepAsync() with wait() operations where no suspension occurs.

This example shows in-process wait behavior:

  • stepAsync() starts a background operation (takes 10 seconds)
  • wait() is called immediately (3 second duration)
  • The async step takes longer than the wait duration
  • No suspension occurs because we've already waited long enough