public class LambdaInvokerFactory
extends java.lang.Object
Constructor and Description |
---|
LambdaInvokerFactory(android.content.Context context,
Regions region,
AWSCredentialsProvider provider)
Constructs a Lambda invoker factory object.
|
LambdaInvokerFactory(android.content.Context context,
Regions region,
AWSCredentialsProvider provider,
ClientConfiguration clientConfiguration)
Constructs a Lambda invoker factory object.
|
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.
|
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 <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 © 2010 Amazon Web Services, Inc. All Rights Reserved.