Java 类com.amazonaws.services.dynamodb.AmazonDynamoDBAsyncClient 实例源码

项目:gora-boot    文件:DynamoDBStore.java   
/**
  * Method to create the specific client to be used
  * @param clientType
  * @param credentials
  * @return
  */
public AmazonDynamoDB getClient(String clientType, AWSCredentials credentials){
  if (clientType.equals("sync"))
    return new AmazonDynamoDBClient(credentials);
  if (clientType.equals("async"))
    return new AmazonDynamoDBAsyncClient(credentials);
  return null;
}
项目:gora-oraclenosql    文件:DynamoDBStore.java   
/**
  * Method to create the specific client to be used
  * @param clientType
  * @param credentials
  * @return
  */
public AmazonDynamoDB getClient(String clientType, AWSCredentials credentials){
  if (clientType.equals("sync"))
    return new AmazonDynamoDBClient(credentials);
  if (clientType.equals("async"))
    return new AmazonDynamoDBAsyncClient(credentials);
  return null;
}