Class GenericTypesExample
java.lang.Object
software.amazon.lambda.durable.DurableHandler<GenericTypesExample.Input,GenericTypesExample.Output>
software.amazon.lambda.durable.examples.GenericTypesExample
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
public class GenericTypesExample
extends DurableHandler<GenericTypesExample.Input,GenericTypesExample.Output>
Example demonstrating TypeToken support for complex generic types.
This example shows how to use TypeToken to work with generic types like List
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleRequest(GenericTypesExample.Input input, DurableContext context) Handle the durable execution.Methods inherited from class software.amazon.lambda.durable.DurableHandler
createConfiguration, createObjectMapper, getConfiguration, handleRequest
-
Constructor Details
-
GenericTypesExample
public GenericTypesExample()
-
-
Method Details
-
handleRequest
public GenericTypesExample.Output handleRequest(GenericTypesExample.Input input, DurableContext context) Description copied from class:DurableHandlerHandle the durable execution.- Specified by:
handleRequestin classDurableHandler<GenericTypesExample.Input,GenericTypesExample.Output> - Parameters:
input- User inputcontext- Durable context for operations- Returns:
- Result
-