Class RetryInvokeExample

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

public class RetryInvokeExample extends DurableHandler<GreetingRequest,String>
Example demonstrating context.withRetry with context.invoke.

Retries a chained Lambda invocation up to 3 times with a fixed 2-second backoff between attempts. Each attempt uses a unique operation name ("call-greeting-1", "call-greeting-2", etc.) so the execution history stays clean and replay-safe.

A null name is used, so attempts are grouped under a default-named child context.