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 {
@LambdaFunction
Result doSomeStuff(Request request);
}
LambdaFunctions functions = LambdaInvokerFactory.builder()
.lambdaClient(AWSLambdaSyncClientBuilder.standard()
.credentialsProvider(new ProfileCredentialsProvider("myprofile"))
.build())
.build(LambdaFunctions.class);
Request request = new Request(...);
Result result = functions.doSomeStuff(request);
| Modifier and Type | Class | Description |
|---|---|---|
static class |
LambdaInvokerFactory.Builder |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> T |
build(Class<T> interfaceClass,
LambdaAsyncClient awsLambda) |
Deprecated.
Use
builder() to configure invoker factory. |
static <T> T |
build(Class<T> interfaceClass,
LambdaAsyncClient awsLambda,
LambdaInvokerFactoryConfig config) |
Deprecated.
Use
builder() to configure invoker factory. |
static LambdaInvokerFactory.Builder |
builder() |
@Deprecated public static <T> T build(Class<T> interfaceClass, LambdaAsyncClient awsLambda)
builder() to configure invoker factory.AWSLambda client.interfaceClass - the interface to implementawsLambda - the lambda client to use for making remote calls@Deprecated public static <T> T build(Class<T> interfaceClass, LambdaAsyncClient awsLambda, LambdaInvokerFactoryConfig config)
builder() to configure invoker factory.AWSLambda client.interfaceClass - the interface to implementawsLambda - the lambda client to use for making remote callsconfig - configuration for the LambdaInvokerFactorypublic static LambdaInvokerFactory.Builder builder()
LambdaInvokerFactory.Builder to configure an invoker factory and build proxies for
invoking remote lambda functions.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.