public final class LambdaInvokerFactory extends 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 | Method and Description |
---|---|
static <T> T |
build(Class<T> interfaceClass,
AWSLambda awsLambda)
Creates a new Lambda invoker implementing the given interface and wrapping the given
AWSLambda client. |
static <T> T |
build(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(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(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 LambdaInvokerFactoryCopyright © 2016. All rights reserved.