Example usage for com.amazonaws.services.simpledb AmazonSimpleDBAsync setEndpoint

List of usage examples for com.amazonaws.services.simpledb AmazonSimpleDBAsync setEndpoint

Introduction

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

Prototype

@Deprecated
void setEndpoint(String endpoint);

Source Link

Document

Overrides the default endpoint for this client ("sdb.amazonaws.com").

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.");
    }//from   w  w w  .  j  ava2s.  c  om
    AmazonSimpleDBAsync client = new AmazonSimpleDBAsyncClient(awsContext.getAwsCredentials());
    String endpoint = awsContext.getSdbEndpoint();
    if (endpoint != null && endpoint != "") {
        client.setEndpoint(endpoint);
    }
    return client;
}