List of usage examples for com.amazonaws.services.simpledb AmazonSimpleDBAsyncClient AmazonSimpleDBAsyncClient
AmazonSimpleDBAsyncClient(AwsAsyncClientParams asyncClientParams)
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; }