public class DynamoDBStoreConfigurationBuilder extends org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder<DynamoDBStoreConfiguration,DynamoDBStoreConfigurationBuilder> implements DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
Used by the Infinispan ConfigurationBuilder to implement fluent configuration for the DynamoDB CacheLoader / CacheWriter. Methods should use the fluent style, rather than the setter/getter style and should return an instance of this object.
Modifier and Type | Field and Description |
---|---|
protected org.infinispan.configuration.cache.ConfigurationBuilder |
builder |
Constructor and Description |
---|
DynamoDBStoreConfigurationBuilder(org.infinispan.configuration.cache.PersistenceConfigurationBuilder builder)
Creates a new DynamoDB store configuration builder.
|
Modifier and Type | Method and Description |
---|---|
DynamoDBStoreConfigurationBuilder |
applyRangeKey(String rangeKeyName)
Sets the name of the optional range key to apply to all DynamoDB
operations.
|
DynamoDBStoreConfigurationBuilder |
awsAccessKeyID(String awsAccessKeyID)
Sets the AWS access key ID.
|
DynamoDBStoreConfigurationBuilder |
awsSecretAccessKey(String awsSecretAccessKey)
Sets the AWS secret access key.
|
DynamoDBStoreConfiguration |
create() |
DynamoDBStoreConfigurationBuilder |
endpoint(String endpoint)
Sets the DynamoDB endpoint.
|
protected org.infinispan.configuration.cache.ConfigurationBuilder |
getBuilder() |
DynamoDBStoreConfigurationBuilder |
itemTransformerClass(Class itemTransformerClass)
Sets the class for transforming between Infinispan entries (key /
value pair and optional metadata) and a corresponding DynamoDB item.
|
DynamoDBStoreConfigurationBuilder |
rangeKeyValue(String rangeKeyValue)
Sets the value of the optional range key.
|
DynamoDBStoreConfigurationChildBuilder |
readCapacity(long readCapacity)
Sets the read capacity to provision when creating a new DynamoDB
table.
|
DynamoDBStoreConfigurationBuilder |
region(com.amazonaws.regions.Regions region)
Sets the DynamoDB region.
|
DynamoDBStoreConfigurationBuilder |
self() |
DynamoDBStoreConfigurationBuilder |
tablePrefix(String tablePrefix)
Sets the DynamoDB table prefix.
|
void |
validate() |
DynamoDBStoreConfigurationBuilder |
withProperties(Properties properties) |
DynamoDBStoreConfigurationChildBuilder |
writeCapacity(long writeCapacity)
Sets the write capacity to provision when creating a new DynamoDB
table.
|
addProperty, async, fetchPersistentState, ignoreModifications, preload, properties, purgeOnStartup, read, shared, singleton, toString, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addProperty, async, fetchPersistentState, ignoreModifications, preload, purgeOnStartup, shared, singleton
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, persistence, security, simpleCache, simpleCache, sites, storeAsBinary, template, transaction, unsafe, validate, versioning
protected final org.infinispan.configuration.cache.ConfigurationBuilder builder
public DynamoDBStoreConfigurationBuilder(org.infinispan.configuration.cache.PersistenceConfigurationBuilder builder)
builder
- The general persistence configuration builder.public DynamoDBStoreConfiguration create()
create
in interface org.infinispan.commons.configuration.Builder<DynamoDBStoreConfiguration>
public DynamoDBStoreConfigurationBuilder endpoint(String endpoint)
DynamoDBStoreConfigurationChildBuilder
endpoint
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
endpoint
- The endpoint, null
if not specified.public DynamoDBStoreConfigurationBuilder region(com.amazonaws.regions.Regions region)
DynamoDBStoreConfigurationChildBuilder
region
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
region
- The region, null
if not specified.public DynamoDBStoreConfigurationBuilder itemTransformerClass(Class itemTransformerClass)
DynamoDBStoreConfigurationChildBuilder
itemTransformerClass
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
itemTransformerClass
- The item transformer class. Must not
be null
.public DynamoDBStoreConfigurationBuilder awsAccessKeyID(String awsAccessKeyID)
DynamoDBStoreConfigurationChildBuilder
awsAccessKeyID
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
awsAccessKeyID
- The AWS access key ID. Must not be
null
.public DynamoDBStoreConfigurationBuilder awsSecretAccessKey(String awsSecretAccessKey)
DynamoDBStoreConfigurationChildBuilder
awsSecretAccessKey
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
awsSecretAccessKey
- The AWS secret access key. Must not be
null
.public DynamoDBStoreConfigurationChildBuilder readCapacity(long readCapacity)
DynamoDBStoreConfigurationChildBuilder
readCapacity
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
readCapacity
- The read capacity. Must be equal or larger than
one.public DynamoDBStoreConfigurationChildBuilder writeCapacity(long writeCapacity)
DynamoDBStoreConfigurationChildBuilder
writeCapacity
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
writeCapacity
- The write capacity. Must be equal or larger
than one.public DynamoDBStoreConfigurationBuilder tablePrefix(String tablePrefix)
DynamoDBStoreConfigurationChildBuilder
tablePrefix
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
tablePrefix
- The table prefix, null
if not specified.public DynamoDBStoreConfigurationBuilder applyRangeKey(String rangeKeyName)
DynamoDBStoreConfigurationChildBuilder
applyRangeKey
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
rangeKeyName
- The range key name, null
if not
specified.public DynamoDBStoreConfigurationBuilder rangeKeyValue(String rangeKeyValue)
DynamoDBStoreConfigurationChildBuilder
rangeKeyValue
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
rangeKeyValue
- The range key value, null
if not
specified.public DynamoDBStoreConfigurationBuilder withProperties(Properties properties)
withProperties
in interface org.infinispan.configuration.cache.StoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
withProperties
in class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder<DynamoDBStoreConfiguration,DynamoDBStoreConfigurationBuilder>
public void validate()
validate
in interface org.infinispan.commons.configuration.Builder<DynamoDBStoreConfiguration>
validate
in class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder<DynamoDBStoreConfiguration,DynamoDBStoreConfigurationBuilder>
public DynamoDBStoreConfigurationBuilder self()
self
in interface org.infinispan.commons.configuration.Self<DynamoDBStoreConfigurationBuilder>
protected org.infinispan.configuration.cache.ConfigurationBuilder getBuilder()
Copyright © 2017 Connect2id Ltd.. All Rights Reserved.