public final class LambdaInvokerFactory
extends java.lang.Object
public class Request {
// Standard POJO stuff here modeling the input your Lambda function
// expects.
}
public class Result {
// More standard POJO stuff here modeling the output your Lambda
// function produces.
}
public interface LambdaFunctions {
Modifier and Type | Class and Description |
---|---|
private static class |
LambdaInvokerFactory.LambdaInvocationHandler |
Modifier and Type | Field and Description |
---|---|
private static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
Modifier | Constructor and Description |
---|---|
private |
LambdaInvokerFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
build(java.lang.Class<T> interfaceClass,
AWSLambda awsLambda)
Creates a new Lambda invoker implementing the given interface and wrapping the given
AWSLambda client. |
static <T> T |
build(java.lang.Class<T> interfaceClass,
AWSLambda awsLambda,
LambdaInvokerFactoryConfig config)
Creates a new Lambda invoker implementing the given interface and wrapping the given
AWSLambda client. |
public static <T> T build(java.lang.Class<T> interfaceClass, AWSLambda awsLambda)
AWSLambda
client.interfaceClass
- the interface to implementawsLambda
- the lambda client to use for making remote callspublic static <T> T build(java.lang.Class<T> interfaceClass, AWSLambda awsLambda, LambdaInvokerFactoryConfig config)
AWSLambda
client.interfaceClass
- the interface to implementawsLambda
- the lambda client to use for making remote callsconfig
- configuration for the LambdaInvokerFactory