Example usage for com.amazonaws.services.simpledb AmazonSimpleDBAsyncClient AmazonSimpleDBAsyncClient

List of usage examples for com.amazonaws.services.simpledb AmazonSimpleDBAsyncClient AmazonSimpleDBAsyncClient

Introduction

In this page you can find the example usage for com.amazonaws.services.simpledb AmazonSimpleDBAsyncClient AmazonSimpleDBAsyncClient.

Prototype

AmazonSimpleDBAsyncClient(AwsAsyncClientParams asyncClientParams) 

Source Link

Document

Constructs a new asynchronous client to invoke service methods on Amazon SimpleDB using the specified parameters.

Usage

From source file:com.aipo.aws.simpledb.SimpleDB.java

License:Open Source License

public static AmazonSimpleDBAsync getAsyncClient() {
    AWSContext awsContext = AWSContext.get();
    if (awsContext == null) {
        throw new IllegalStateException("AWSContext is not initialized.");
    }//  w  ww.j a va2s  .  co m
    AmazonSimpleDBAsync client = new AmazonSimpleDBAsyncClient(awsContext.getAwsCredentials());
    String endpoint = awsContext.getSdbEndpoint();
    if (endpoint != null && endpoint != "") {
        client.setEndpoint(endpoint);
    }
    return client;
}