/** * Construct an asynchronous implementation of AmazonDynamoDBAsync using the current builder configuration. * * @param params * Current builder configuration represented as a parameter object. * @return Fully configured implementation of AmazonDynamoDBAsync. */ @Override protected AmazonDynamoDBAsync build(AwsAsyncClientParams params) { return new AmazonDynamoDBAsyncClient(params); }
/** * Construct an asynchronous implementation of AmazonDynamoDBAsync using the current builder configuration. * * @param params * Current builder configuration represented as a parameter object. * @return Fully configured implementation of AmazonDynamoDBAsync. */ @Override protected AmazonDynamoDBAsync build(AwsAsyncClientParams params) { return new AmazonDynamoDBAsyncClient(params); }
public DynamoDataStore(AWSCredentialsProvider credentials, AggregatorType aggregatorType, String streamName, String tableName, String labelAttribute, String dateAttribute) { this(new AmazonDynamoDBAsyncClient(credentials), new AmazonKinesisClient(credentials), aggregatorType, streamName, tableName, labelAttribute, dateAttribute); }
/** * Method to create the specific client to be used * * @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; }
/** * Constructor with given parameters, used for when MultiRegionEmitter creates emitter dynamically. * * @param endpoint * The endpoint of the emitter * @param region * The region of the emitter * @param tableName * The tableName the emitter should emit to * @param cloudwatch * The cloudwatch client used for this application * @param credentialProvider * The credential provider used for the DynamoDB client * @deprecated Deprecated by {@link #DynamoDBReplicationEmitter(String, String, String, String, AmazonDynamoDBAsync, AmazonCloudWatchAsync)} */ @Deprecated public DynamoDBReplicationEmitter(final String applicationName, final String endpoint, final String region, final String tableName, final AmazonCloudWatchAsync cloudwatch, final AWSCredentialsProvider credentialProvider) { this(applicationName, endpoint, region, tableName, new AmazonDynamoDBAsyncClient(credentialProvider, new ClientConfiguration().withMaxConnections(MAX_THREADS).withRetryPolicy(PredefinedRetryPolicies.DYNAMODB_DEFAULT), Executors.newFixedThreadPool(MAX_THREADS)), cloudwatch); }
if (region != null) dynamoClient.setRegion(region); final AmazonDynamoDBAsyncClient deleteCli = new AmazonDynamoDBAsyncClient( credentials); deleteCli.setRegion(region);
this.dynamoClient = new AmazonDynamoDBAsyncClient( this.config.getDynamoDBCredentialsProvider(), clientConfig); if (region != null)