public class LambdaInvokerFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LambdaInvokerFactory.Builder
Builder class for LambdaInvokerFactory
|
Constructor and Description |
---|
LambdaInvokerFactory(android.content.Context context,
Regions region,
AWSCredentialsProvider provider)
Deprecated.
Please use LambdaInvokerFactory.builder()
.context(context)
.region(Regions.AP_NORTHEAST_1)
.credentialsProvider(provider)
.build();
|
LambdaInvokerFactory(android.content.Context context,
Regions region,
AWSCredentialsProvider provider,
ClientConfiguration clientConfiguration)
Deprecated.
Please use LambdaInvokerFactory.builder()
.context(context)
.region(Regions.AP_NORTHEAST_1)
.credentialsProvider(provider)
.clientConfiguration(clientConfig)
.build();
|
Modifier and Type | Method and Description |
---|---|
<T> T |
build(java.lang.Class<T> interfaceClass)
Contexts a dynamic proxy object of the given class with a default Json
data binder.
|
<T> T |
build(java.lang.Class<T> interfaceClass,
LambdaDataBinder binder)
Contexts a dynamic proxy object of the given class.
|
static LambdaInvokerFactory.Builder |
builder()
Some examples:
LambdaInvokerFactory.builder()
.context(context)
.region(Regions.AP_NORTHEAST_1)
.clientConfiguration(clientConfig) // Optional
.credentialsProvider(provider)
.build();
LambdaInvokerFactory.builder()
.context(context)
.awsConfiguration(awsConfig)
.clientConfiguration(clientConfig) // Optional
.credentialsProvider(provider)
.build;
LambdaInvokerFactory.builder()
.lambdaClient(client)
.clientContext(clientContext)
.build;
|
ClientContext |
getClientContext()
Gets the client context associated with this factory.
|
public LambdaInvokerFactory(android.content.Context context, Regions region, AWSCredentialsProvider provider)
context
- context of the app. A client context will be created from
the given context.region
- region of Lambda serviceprovider
- a AWS credentials providerpublic LambdaInvokerFactory(android.content.Context context, Regions region, AWSCredentialsProvider provider, ClientConfiguration clientConfiguration)
ClientConfiguration
.
ClientConfiguration config = new ClientConfiguration(); config.setSocketTimeout(5 * 60 * 1000); // 5 minutes LambdaInvokerFactory factory = new LambdaInvokerFactory(context, region, provider, config);
context
- context of the app. A client context will be created from
the given context.region
- region of Lambda serviceprovider
- a AWS credentials providerclientConfiguration
- client configuration for the factorypublic static LambdaInvokerFactory.Builder builder()
public <T> T build(java.lang.Class<T> interfaceClass)
T
- the type for the classinterfaceClass
- the class to be dynamically proxied by Lambdapublic <T> T build(java.lang.Class<T> interfaceClass, LambdaDataBinder binder)
T
- the type of the interfaceclass.interfaceClass
- the class to be dynamically proxied by Lambdabinder
- a data binder to convert between POJO and byte stream.public ClientContext getClientContext()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.