Search in sources :

Example 1 with AmazonDaxClientBuilder

use of com.amazon.dax.client.dynamodbv2.AmazonDaxClientBuilder in project aws-doc-sdk-examples by awsdocs.

the class TryDaxHelper method getDaxClient.

DynamoDB getDaxClient(String daxEndpoint) {
    System.out.println("Creating a DAX client with cluster endpoint " + daxEndpoint);
    AmazonDaxClientBuilder daxClientBuilder = AmazonDaxClientBuilder.standard();
    daxClientBuilder.withRegion(region).withEndpointConfiguration(daxEndpoint);
    AmazonDynamoDB client = daxClientBuilder.build();
    return new DynamoDB(client);
}
Also used : AmazonDaxClientBuilder(com.amazon.dax.client.dynamodbv2.AmazonDaxClientBuilder) AmazonDynamoDB(com.amazonaws.services.dynamodbv2.AmazonDynamoDB) DynamoDB(com.amazonaws.services.dynamodbv2.document.DynamoDB) AmazonDynamoDB(com.amazonaws.services.dynamodbv2.AmazonDynamoDB)

Aggregations

AmazonDaxClientBuilder (com.amazon.dax.client.dynamodbv2.AmazonDaxClientBuilder)1 AmazonDynamoDB (com.amazonaws.services.dynamodbv2.AmazonDynamoDB)1 DynamoDB (com.amazonaws.services.dynamodbv2.document.DynamoDB)1