Class AwsLambdaFunctionExecutor<I,O>
java.lang.Object
io.micronaut.function.client.aws.v2.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=software.amazon.awssdk.services.lambda.LambdaAsyncClient.class)
@Singleton
@Internal
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
(software.amazon.awssdk.services.lambda.LambdaClient syncClient, software.amazon.awssdk.services.lambda.LambdaAsyncClient asyncClient, io.micronaut.core.io.buffer.ByteBufferFactory<?, ?> byteBufferFactory, io.micronaut.json.codec.JsonMediaTypeCodec mediaTypeCodec, ExecutorService executor, io.micronaut.core.convert.ConversionService conversionService) Constructor. -
Method Summary
-
Constructor Details
-
AwsLambdaFunctionExecutor
protected AwsLambdaFunctionExecutor(software.amazon.awssdk.services.lambda.LambdaClient syncClient, software.amazon.awssdk.services.lambda.LambdaAsyncClient asyncClient, io.micronaut.core.io.buffer.ByteBufferFactory<?, ?> byteBufferFactory, io.micronaut.json.codec.JsonMediaTypeCodec mediaTypeCodec, @Named("blocking") ExecutorService executor, io.micronaut.core.convert.ConversionService conversionService) Constructor.- Parameters:
syncClient
- Lambda Sync ClientasyncClient
- Lambda Async ClientbyteBufferFactory
- byteBufferFactorymediaTypeCodec
- JsonMediaTypeCodecexecutor
- blocking executorconversionService
- ConversionService
-
-
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
-