com.amazonaws.services.lambda.AWSLambdaAsync Java Examples
The following examples show how to use
com.amazonaws.services.lambda.AWSLambdaAsync.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AWSLambdaFunctionExecutor.java From micronaut-aws with Apache License 2.0 | 5 votes |
/** * Constructor. * @param asyncClient asyncClient * @param byteBufferFactory byteBufferFactory * @param jsonMediaTypeCodec jsonMediaTypeCodec * @param ioExecutor ioExecutor */ protected AWSLambdaFunctionExecutor( AWSLambdaAsync asyncClient, ByteBufferFactory byteBufferFactory, JsonMediaTypeCodec jsonMediaTypeCodec, @Named(TaskExecutors.IO) ExecutorService ioExecutor) { this.asyncClient = asyncClient; this.byteBufferFactory = byteBufferFactory; this.jsonMediaTypeCodec = jsonMediaTypeCodec; this.ioExecutor = ioExecutor; }
Example #2
Source File: AWSLambdaAsyncClientFactory.java From micronaut-aws with Apache License 2.0 | 5 votes |
/** * The client returned from a builder. * @return client object */ @Requires(beans = AWSLambdaConfiguration.class) @Singleton AWSLambdaAsync awsLambdaAsyncClient() { AWSLambdaAsyncClientBuilder builder = configuration.getBuilder(); return builder.build(); }
Example #3
Source File: LambdaFunctionClient.java From xyz-hub with Apache License 2.0 | 5 votes |
private static void shutdownLambdaClient(AWSLambdaAsync lambdaClient) { if (lambdaClient == null) return; //Shutdown the lambda client after the request timeout //TODO: Use CompletableFuture.delayedExecutor() after switching to Java 9 new Thread(() -> { try { Thread.sleep(REQUEST_TIMEOUT); } catch (InterruptedException ignored) {} lambdaClient.shutdown(); }).start(); }
Example #4
Source File: AmazonAsyncDockerClientsHolder.java From spring-localstack with Apache License 2.0 | 5 votes |
@Override public AWSLambdaAsync awsLambda() { return decorateWithConfigsAndBuild( AWSLambdaAsyncClientBuilder.standard(), LocalstackDocker::getEndpointLambda ); }
Example #5
Source File: InvocationClient.java From kafka-connect-lambda with Apache License 2.0 | 4 votes |
private InvocationClient(String functionArn, AWSLambdaAsync innerClient) { this.functionArn = functionArn; this.innerClient = innerClient; }