Java 类com.amazonaws.services.dynamodbv2.AmazonDynamoDBStreamsClient 实例源码

项目:wildfly-camel    文件:DynamoDBUtils.java   
public static AmazonDynamoDBStreamsClient createDynamoDBStreamsClient() {
    BasicCredentialsProvider credentials = BasicCredentialsProvider.standard();
    AmazonDynamoDBStreamsClient client = !credentials.isValid() ? null : (AmazonDynamoDBStreamsClient)
            AmazonDynamoDBStreamsClientBuilder.standard()
            .withCredentials(credentials)
            .withRegion("eu-west-1")
            .build();
    return client;
}
项目:wildfly-camel    文件:DynamoDBClientProducer.java   
DynamoDBStreamsClientProvider(AmazonDynamoDBStreamsClient client) {
    this.client = client;
}
项目:wildfly-camel    文件:DynamoDBClientProducer.java   
public AmazonDynamoDBStreamsClient getClient() {
    return client;
}
项目:wildfly-camel    文件:DynamoDBClientProducer.java   
@Produces
@Singleton
public DynamoDBStreamsClientProvider getDynamoDBStreamsClientProvider() throws Exception {
    AmazonDynamoDBStreamsClient client = DynamoDBUtils.createDynamoDBStreamsClient();
    return new DynamoDBStreamsClientProvider(client);
}