Package com.amazonaws.services.sqs

Examples of com.amazonaws.services.sqs.AmazonSQSAsyncClient


   * @param endpoint endpoint url
   */
  public AWSQueue(String name, String endpoint) {
    this.endpoint = StringUtils.isBlank(endpoint) ? SQS_ENDPOINT : endpoint;
    this.name = name;
    sqs = new AmazonSQSAsyncClient(new BasicAWSCredentials(Config.AWS_ACCESSKEY, Config.AWS_SECRETKEY));
    sqs.setRegion(Region.getRegion(Regions.fromName(Config.AWS_REGION)));
    sqs.setEndpoint(this.endpoint);
    url = create(name);

    Para.addDestroyListener(new Para.DestroyListener() {
View Full Code Here


    private final String queueUrl;
    private final ObjectMapper objectMapper;
    private final AmazonSQSAsync sqs;

    public AmazonSQSAsyncPutTaskService(String queueUrl) {
        this(queueUrl, new AmazonSQSAsyncClient());
    }
View Full Code Here

  AmazonSQSClient client() {
    if (sqs != null) {
      return sqs;
    }
    sqs = new AmazonSQSAsyncClient(new BasicAWSCredentials(Config.AWS_ACCESSKEY, Config.AWS_SECRETKEY));
    sqs.setRegion(Region.getRegion(Regions.fromName(Config.AWS_REGION)));
    sqs.setEndpoint(this.endpoint);

    Para.addDestroyListener(new Para.DestroyListener() {
      public void onDestroy() {
View Full Code Here

TOP

Related Classes of com.amazonaws.services.sqs.AmazonSQSAsyncClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.