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