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.
|
DynamoDBStoreConfiguration |
create() |
DynamoDBStoreConfigurationBuilder |
endpoint(String endpoint)
Sets the DynamoDB endpoint.
|
protected org.infinispan.configuration.cache.ConfigurationBuilder |
getBuilder() |
DynamoDBStoreConfigurationBuilder |
indexedAttributes(Set<String> indexAttributes)
Sets the optional indexed DynamoDB table attributes.
|
DynamoDBStoreConfigurationBuilder |
itemTransformerClass(Class itemTransformerClass)
Sets the class for transforming between Infinispan entries (key /
value pair and optional metadata) and a corresponding DynamoDB item.
|
DynamoDBStoreConfigurationBuilder |
queryExecutorClass(Class queryExecutorClass)
Sets the optional class for executing direct queries against
DynamoDB.
|
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, maxBatchSize, preload, properties, purgeOnStartup, read, shared, singleton, toString, transactional, validate, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, shared, singleton, transactional
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, encoding, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, 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 queryExecutorClass(Class queryExecutorClass)
DynamoDBStoreConfigurationChildBuilder
DynamoDBStoreConfigurationChildBuilder.indexedAttributes(java.util.Set<java.lang.String>)
must also be specified.queryExecutorClass
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
queryExecutorClass
- The query executor class, null
if
not required.public DynamoDBStoreConfigurationBuilder indexedAttributes(Set<String> indexAttributes)
DynamoDBStoreConfigurationChildBuilder
DynamoDBStoreConfigurationChildBuilder.queryExecutorClass(java.lang.Class)
must also be specified.indexedAttributes
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
indexAttributes
- The indexed attributes, null
if not
required.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 © 2018 Connect2id Ltd.. All rights reserved.