Interface DynamoDBStoreConfigurationChildBuilder<S>
- All Superinterfaces:
org.infinispan.configuration.cache.ConfigurationChildBuilder
,org.infinispan.configuration.cache.StoreConfigurationChildBuilder<S>
- All Known Implementing Classes:
DynamoDBStoreConfigurationBuilder
public interface DynamoDBStoreConfigurationChildBuilder<S>
extends org.infinispan.configuration.cache.StoreConfigurationChildBuilder<S>
DynamoDB store configuration child builder.
-
Method Summary
Modifier and TypeMethodDescriptionapplyRangeKey
(String rangeKeyName) Sets the name of the optional range key to apply to all DynamoDB operations.consistentReads
(boolean enable) Sets the consistent read flag.enableContinuousBackups
(boolean enable) Sets the enable continuous backups / point in time recovery.enableStream
(boolean enable) Sets the enable stream flag.enableTTL
(boolean enable) Sets the enable DynamoDB item expiration.Sets the DynamoDB endpoint.hmacSHA256Key
(String key) Sets the HMAC SHA-256 key.httpProxyHost
(String host) Sets the HTTP proxy host.httpProxyPort
(int port) Sets the HTTP proxy port.indexedAttributes
(Set<String> indexAttributes) Sets the optional indexed DynamoDB table attributes.itemTransformerClass
(Class itemTransformerClass) Sets the class for transforming between Infinispan entries (key / value pair and optional metadata) and a corresponding DynamoDB item.metricRegistry
(com.codahale.metrics.MetricRegistry metricRegistry) Sets an explicit metric registry to use (other than singletonMonitorRegistries
).purgeLimit
(long purgeLimit) Sets the limit of expired entries to purge during a run of the expired entry reaper task.purgeMaxReadCapacity
(Capacity purgeReadCapacity) Sets the maximum read capacity to use when scanning a DynamoDB table for expired items.queryExecutorClass
(Class queryExecutorClass) Sets the optional class for executing direct queries against DynamoDB.rangeKeyValue
(String rangeKeyValue) Sets the value of the optional range key.readCapacity
(long readCapacity) Sets the read capacity to provision when creating a new DynamoDB table.region
(com.amazonaws.regions.Regions region) Sets the DynamoDB region.tablePrefix
(String tablePrefix) Sets the DynamoDB table prefix.tableWithEncryptionAtRest
(boolean encryptionAtRest) Sets the DynamoDB table encryption at rest.writeCapacity
(long writeCapacity) Sets the write capacity to provision when creating a new DynamoDB table.Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, query, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe, validate
Methods inherited from interface org.infinispan.configuration.cache.StoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnly
-
Method Details
-
endpoint
Sets the DynamoDB endpoint.- Parameters:
endpoint
- The endpoint,null
if not specified.- Returns:
- The builder.
-
region
Sets the DynamoDB region.- Parameters:
region
- The region,null
if not specified.- Returns:
- The builder.
-
itemTransformerClass
Sets the class for transforming between Infinispan entries (key / value pair and optional metadata) and a corresponding DynamoDB item.- Parameters:
itemTransformerClass
- The item transformer class. Must not benull
.- Returns:
- The builder.
-
queryExecutorClass
Sets the optional class for executing direct queries against DynamoDB. If setindexedAttributes(java.util.Set<java.lang.String>)
must also be specified.- Parameters:
queryExecutorClass
- The query executor class,null
if not required.- Returns:
- The builder.
-
indexedAttributes
Sets the optional indexed DynamoDB table attributes. If setqueryExecutorClass(java.lang.Class)
must also be specified.- Parameters:
indexAttributes
- The indexed attributes,null
if not required.- Returns:
- The builder.
-
consistentReads
Sets the consistent read flag.- Parameters:
enable
-true
for consistent reads,false
for eventually consistent.- Returns:
- The builder.
-
readCapacity
Sets the read capacity to provision when creating a new DynamoDB table.- Parameters:
readCapacity
- The read capacity. Must be equal or larger than one.- Returns:
- The builder.
-
writeCapacity
Sets the write capacity to provision when creating a new DynamoDB table.- Parameters:
writeCapacity
- The write capacity. Must be equal or larger than one.- Returns:
- The builder.
-
purgeMaxReadCapacity
Sets the maximum read capacity to use when scanning a DynamoDB table for expired items.- Parameters:
purgeReadCapacity
- The maximum read capacity to use when scanning a DynamoDB table for expired items.- Returns:
- This builder.
-
tableWithEncryptionAtRest
Sets the DynamoDB table encryption at rest.- Parameters:
encryptionAtRest
-true
to create the DynamoDB table with encryption at rest,false
with no encryption.- Returns:
- The builder.
-
tablePrefix
Sets the DynamoDB table prefix.- Parameters:
tablePrefix
- The table prefix,null
if not specified.- Returns:
- The builder.
-
metricRegistry
DynamoDBStoreConfigurationChildBuilder<S> metricRegistry(com.codahale.metrics.MetricRegistry metricRegistry) Sets an explicit metric registry to use (other than singletonMonitorRegistries
).- Parameters:
metricRegistry
- The metric registry to use.- Returns:
- The builder.
-
applyRangeKey
Sets the name of the optional range key to apply to all DynamoDB operations.- Parameters:
rangeKeyName
- The range key name,null
if not specified.- Returns:
- The builder.
-
rangeKeyValue
Sets the value of the optional range key.- Parameters:
rangeKeyValue
- The range key value,null
if not specified.- Returns:
- The builder.
-
enableStream
Sets the enable stream flag.- Parameters:
enable
-true
to enable a stream for a global table,false
for a regular table.- Returns:
- The builder.
-
enableContinuousBackups
Sets the enable continuous backups / point in time recovery.- Parameters:
enable
-true
to enable continuous backups,false
without.- Returns:
- The builder.
-
enableTTL
Sets the enable DynamoDB item expiration.- Parameters:
enable
-true
to enable item expiration,false
without.- Returns:
- The builder.
-
purgeLimit
Sets the limit of expired entries to purge during a run of the expired entry reaper task.- Parameters:
purgeLimit
- The purge limit, -1 for no limit.- Returns:
- The builder.
-
httpProxyHost
Sets the HTTP proxy host.- Parameters:
host
- The host,null
if none.- Returns:
- The builder.
-
httpProxyPort
Sets the HTTP proxy port.- Parameters:
port
- The port, -1 if none.- Returns:
- The builder.
-
hmacSHA256Key
Sets the HMAC SHA-256 key.- Parameters:
key
- The HMAC SHA-256 key,null
if none.- Returns:
- The builder.
-