Example usage for com.amazonaws.services.sqs AmazonSQSAsyncClientBuilder standard

List of usage examples for com.amazonaws.services.sqs AmazonSQSAsyncClientBuilder standard

Introduction

In this page you can find the example usage for com.amazonaws.services.sqs AmazonSQSAsyncClientBuilder standard.

Prototype

public static AmazonSQSAsyncClientBuilder standard() 

Source Link

Usage

From source file:com.streamsets.pipeline.stage.origin.sqs.SqsConsumer.java

License:Apache License

private AmazonSQSAsync buildAsyncClient() {
    final AmazonSQSAsyncClientBuilder builder = AmazonSQSAsyncClientBuilder.standard();
    builder.setRegion(conf.region.getId());
    builder.setCredentials(credentials);
    builder.setClientConfiguration(clientConfiguration);
    return builder.build();
}

From source file:zipkin.reporter.sqs.SQSSender.java

License:Apache License

@Memoized
AmazonSQSAsync get() {//from w w w  .  ja  v a  2s  . c om
    AmazonSQSAsync result = AmazonSQSAsyncClientBuilder.standard().withCredentials(credentialsProvider())
            .withEndpointConfiguration(endpointConfiguration()).build();
    provisioned = true;
    return result;
}