Example usage for com.amazonaws.services.dynamodbv2 AmazonDynamoDBAsyncClient AmazonDynamoDBAsyncClient

List of usage examples for com.amazonaws.services.dynamodbv2 AmazonDynamoDBAsyncClient AmazonDynamoDBAsyncClient

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2 AmazonDynamoDBAsyncClient AmazonDynamoDBAsyncClient.

Prototype

AmazonDynamoDBAsyncClient(AwsAsyncClientParams asyncClientParams) 

Source Link

Document

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

Usage

From source file:io.fineo.drill.exec.store.dynamo.DynamoStoragePlugin.java

License:Apache License

private void ensureModel() {
    if (this.model == null) {
        this.client = new AmazonDynamoDBAsyncClient(config.inflateCredentials());
        config.getEndpoint().configure(client);
        this.model = new DynamoDB(client);
    }//from w  w  w .java  2  s  .c  om
}

From source file:io.fineo.dynamo.LocalDynamoTestUtil.java

License:Apache License

public AmazonDynamoDBAsyncClient getAsyncClient() {
    return withProvider(new AmazonDynamoDBAsyncClient(credentials));
}

From source file:org.apache.gora.dynamodb.store.DynamoDBUtils.java

License:Apache License

/**
 * Method to create the specific client to be used
 * /*from   w  w  w.  ja va 2 s .  com*/
 * @param clientType
 * @param credentials
 * @return
 */
public static AmazonDynamoDB getClient(String clientType, AWSCredentials credentials) {
    if (clientType.equals(SYNC_CLIENT_PROP))
        return new AmazonDynamoDBClient(credentials);
    if (clientType.equals(ASYNC_CLIENT_PROP))
        return new AmazonDynamoDBAsyncClient(credentials);
    return null;
}