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 |
consistentReads(boolean enable)
Sets the consistent read flag.
|
DynamoDBStoreConfiguration |
create() |
DynamoDBStoreConfigurationBuilder |
enableContinuousBackups(boolean enable)
Sets the enable continuous backups / point in time recovery.
|
DynamoDBStoreConfigurationBuilder |
enableStream(boolean enable)
Sets the enable stream flag.
|
DynamoDBStoreConfigurationBuilder |
enableTTL(boolean enable)
Sets the enable DynamoDB item expiration.
|
DynamoDBStoreConfigurationBuilder |
endpoint(String endpoint)
Sets the DynamoDB endpoint.
|
protected org.infinispan.configuration.cache.ConfigurationBuilder |
getBuilder() |
DynamoDBStoreConfigurationBuilder |
hmacSHA256Key(String key)
Sets the HMAC SHA-256 key.
|
DynamoDBStoreConfigurationBuilder |
httpProxyHost(String host)
Sets the HTTP proxy host.
|
DynamoDBStoreConfigurationBuilder |
httpProxyPort(int port)
Sets the HTTP proxy port.
|
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 |
metricRegistry(com.codahale.metrics.MetricRegistry metricRegistry)
Sets an explicit metric registry to use (other than singleton
MonitorRegistries ). |
DynamoDBStoreConfigurationBuilder |
purgeLimit(int purgeLimit)
Sets the limit of expired entries to purge during a run of the
expired entry reaper task.
|
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.
|
DynamoDBStoreConfigurationBuilder |
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.
|
DynamoDBStoreConfigurationBuilder |
tableWithEncryptionAtRest(boolean encryptionAtRest)
Sets the DynamoDB table encryption at rest.
|
void |
validate() |
DynamoDBStoreConfigurationBuilder |
withProperties(Properties properties) |
DynamoDBStoreConfigurationBuilder |
writeCapacity(long writeCapacity)
Sets the write capacity to provision when creating a new DynamoDB
table.
|
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, read, segmented, shared, singleton, toString, transactional, validate, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, 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 DynamoDBStoreConfigurationBuilder consistentReads(boolean enable)
DynamoDBStoreConfigurationChildBuilder
consistentReads
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
enable
- true
for consistent reads, false
for
eventually consistent.public DynamoDBStoreConfigurationBuilder readCapacity(long readCapacity)
DynamoDBStoreConfigurationChildBuilder
readCapacity
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
readCapacity
- The read capacity. Must be equal or larger than
one.public DynamoDBStoreConfigurationBuilder writeCapacity(long writeCapacity)
DynamoDBStoreConfigurationChildBuilder
writeCapacity
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
writeCapacity
- The write capacity. Must be equal or larger
than one.public DynamoDBStoreConfigurationBuilder tableWithEncryptionAtRest(boolean encryptionAtRest)
DynamoDBStoreConfigurationChildBuilder
tableWithEncryptionAtRest
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
encryptionAtRest
- true
to create the DynamoDB table
with encryption at rest, false
with
no encryption.public DynamoDBStoreConfigurationBuilder tablePrefix(String tablePrefix)
DynamoDBStoreConfigurationChildBuilder
tablePrefix
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
tablePrefix
- The table prefix, null
if not specified.public DynamoDBStoreConfigurationBuilder metricRegistry(com.codahale.metrics.MetricRegistry metricRegistry)
DynamoDBStoreConfigurationChildBuilder
MonitorRegistries
).metricRegistry
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
metricRegistry
- The metric registry to use.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 enableStream(boolean enable)
DynamoDBStoreConfigurationChildBuilder
enableStream
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
enable
- true
to enable a stream for a global table,
false
for a regular table.public DynamoDBStoreConfigurationBuilder enableContinuousBackups(boolean enable)
DynamoDBStoreConfigurationChildBuilder
enableContinuousBackups
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
enable
- true
to enable continuous backups,
false
without.public DynamoDBStoreConfigurationBuilder enableTTL(boolean enable)
DynamoDBStoreConfigurationChildBuilder
enableTTL
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
enable
- true
to enable item expiration, false
without.public DynamoDBStoreConfigurationBuilder purgeLimit(int purgeLimit)
DynamoDBStoreConfigurationChildBuilder
purgeLimit
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
purgeLimit
- The purge limit, -1 for no limit.public DynamoDBStoreConfigurationBuilder httpProxyHost(String host)
DynamoDBStoreConfigurationChildBuilder
httpProxyHost
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
host
- The host, null
if none.public DynamoDBStoreConfigurationBuilder httpProxyPort(int port)
DynamoDBStoreConfigurationChildBuilder
httpProxyPort
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
port
- The port, -1 if none.public DynamoDBStoreConfigurationBuilder hmacSHA256Key(String key)
DynamoDBStoreConfigurationChildBuilder
hmacSHA256Key
in interface DynamoDBStoreConfigurationChildBuilder<DynamoDBStoreConfigurationBuilder>
key
- The HMAC SHA-256 key, null
if none.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 © 2021 Connect2id Ltd.. All rights reserved.