Package io.micronaut.function.client.aws
Class AWSLambdaFunctionExecutor<I,O>
java.lang.Object
io.micronaut.function.client.aws.AWSLambdaFunctionExecutor<I,O>
- Type Parameters:
I
- input typeO
- output type
- All Implemented Interfaces:
io.micronaut.function.client.FunctionInvoker<I,
,O> io.micronaut.function.client.FunctionInvokerChooser
@Requires(beans=com.amazonaws.services.lambda.AWSLambdaAsync.class)
@Singleton
public class AWSLambdaFunctionExecutor<I,O>
extends Object
implements io.micronaut.function.client.FunctionInvoker<I,O>, io.micronaut.function.client.FunctionInvokerChooser
A
FunctionInvoker
for invoking functions on AWS.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ModifierConstructorDescriptionprotected
AWSLambdaFunctionExecutor
(com.amazonaws.services.lambda.AWSLambdaAsync asyncClient, io.micronaut.core.io.buffer.ByteBufferFactory byteBufferFactory, io.micronaut.jackson.codec.JsonMediaTypeCodec jsonMediaTypeCodec, ExecutorService ioExecutor) Constructor. -
Method Summary
-
Constructor Details
-
AWSLambdaFunctionExecutor
protected AWSLambdaFunctionExecutor(com.amazonaws.services.lambda.AWSLambdaAsync asyncClient, io.micronaut.core.io.buffer.ByteBufferFactory byteBufferFactory, io.micronaut.jackson.codec.JsonMediaTypeCodec jsonMediaTypeCodec, @Named("io") ExecutorService ioExecutor) Constructor.- Parameters:
asyncClient
- asyncClientbyteBufferFactory
- byteBufferFactoryjsonMediaTypeCodec
- jsonMediaTypeCodecioExecutor
- ioExecutor
-
-
Method Details
-
invoke
-
choose
public <I1,O2> Optional<io.micronaut.function.client.FunctionInvoker<I1,O2>> choose(io.micronaut.function.client.FunctionDefinition definition) - Specified by:
choose
in interfaceio.micronaut.function.client.FunctionInvokerChooser
-