List of usage examples for com.amazonaws.services.simpledb AmazonSimpleDBAsync setEndpoint
@Deprecated
void setEndpoint(String endpoint);
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; }