Class DynamoDBStoreConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.AbstractStoreConfiguration
-
- com.nimbusds.infinispan.persistence.dynamodb.config.DynamoDBStoreConfiguration
-
- All Implemented Interfaces:
com.nimbusds.common.config.LoggableConfiguration
,org.infinispan.configuration.cache.StoreConfiguration
@Immutable public class DynamoDBStoreConfiguration extends org.infinispan.configuration.cache.AbstractStoreConfiguration implements com.nimbusds.common.config.LoggableConfiguration
DynamoDB store configuration.
-
-
Constructor Summary
Constructors Constructor Description DynamoDBStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, org.infinispan.configuration.cache.AsyncStoreConfiguration asyncConfig, org.infinispan.configuration.cache.SingletonStoreConfiguration singletonStoreConfig)
Creates a new DynamoDB store configuration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.infinispan.commons.configuration.attributes.AttributeSet
attributeDefinitionSet()
Returns the attribute definitions for the DynamoDB store configuration.String
getApplyRangeKey()
Returns the name of the optional range key to apply to all DynamoDB operations.String
getEndpoint()
Returns the DynamoDB endpoint.String
getHMACSHA256Key()
Returns the HMAC SHA-256 key.String
getHTTPProxyHost()
Returns the HTTP proxy host.int
getHTTPProxyPort()
Returns the HTTP proxy port.Set<String>
getIndexedAttributes()
Returns the optional indexed DynamoDB attributes.Class
getItemTransformerClass()
Returns the class for transforming between Infinispan entries (key / value pairs and optional metadata) and a corresponding DynamoDB item.com.codahale.metrics.MetricRegistry
getMetricRegistry()
Returns the explicit metric registry to use.com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput
getProvisionedThroughput()
Returns the read and write capacity to provision when creating a new DynamoDB table.int
getPurgeLimit()
Returns the expired items purge limit.Class
getQueryExecutorClass()
Returns the optional class for executing direct queries against DynamoDB.String
getRangeKeyValue()
Returns the value of the optional range key.com.amazonaws.regions.Regions
getRegion()
Returns the AWS region.String
getTablePrefix()
Returns the optional DynamoDB table prefix.boolean
isConsistentReads()
Returns the consistent reads flag.boolean
isEnableContinuousBackups()
Returns the value of the enable continuous backups / point in time recovery flag.boolean
isEnableStream()
Returns the value of the enable stream flag.boolean
isEnableTTL()
Returns the values of the enable TTL flag.boolean
isTableWithEncryptionAtRest()
Returns the setting for creating the DynamoDB table with encryption at rest.void
log()
Properties
properties()
-
-
-
Constructor Detail
-
DynamoDBStoreConfiguration
public DynamoDBStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, org.infinispan.configuration.cache.AsyncStoreConfiguration asyncConfig, org.infinispan.configuration.cache.SingletonStoreConfiguration singletonStoreConfig)
Creates a new DynamoDB store configuration.- Parameters:
attributes
- The configuration attributes. Must not benull
.asyncConfig
- Configuration for the async cache loader.singletonStoreConfig
- Configuration for a singleton store.
-
-
Method Detail
-
attributeDefinitionSet
public static org.infinispan.commons.configuration.attributes.AttributeSet attributeDefinitionSet()
Returns the attribute definitions for the DynamoDB store configuration.- Returns:
- The attribute definitions.
-
getEndpoint
public String getEndpoint()
Returns the DynamoDB endpoint.- Returns:
- The DynamoDB endpoint,
null
if not set.
-
getRegion
public com.amazonaws.regions.Regions getRegion()
Returns the AWS region.- Returns:
- The AWS region.
-
getItemTransformerClass
public Class getItemTransformerClass()
Returns the class for transforming between Infinispan entries (key / value pairs and optional metadata) and a corresponding DynamoDB item.- Returns:
- The item transformer class.
-
getQueryExecutorClass
public Class getQueryExecutorClass()
Returns the optional class for executing direct queries against DynamoDB.See
QueryExecutor
- Returns:
- The query executor class,
null
if not specified.
-
getIndexedAttributes
public Set<String> getIndexedAttributes()
Returns the optional indexed DynamoDB attributes.- Returns:
- The indexed attributes,
null
if no specified.
-
isConsistentReads
public boolean isConsistentReads()
Returns the consistent reads flag.- Returns:
true
for strong consistent reads,false
for eventually consistent.
-
getProvisionedThroughput
public com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput getProvisionedThroughput()
Returns the read and write capacity to provision when creating a new DynamoDB table.- Returns:
- The read and write capacity.
-
isTableWithEncryptionAtRest
public boolean isTableWithEncryptionAtRest()
Returns the setting for creating the DynamoDB table with encryption at rest.- Returns:
true
to create the table with encryption at rest,false
with no encryption.
-
getTablePrefix
public String getTablePrefix()
Returns the optional DynamoDB table prefix.- Returns:
- The DynamoDB table prefix, empty string if not set.
-
getApplyRangeKey
public String getApplyRangeKey()
Returns the name of the optional range key to apply to all DynamoDB operations.- Returns:
- The range key name,
null
if not specified.
-
getRangeKeyValue
public String getRangeKeyValue()
Returns the value of the optional range key.- Returns:
- The range key value,
null
if not specified.
-
isEnableStream
public boolean isEnableStream()
Returns the value of the enable stream flag.- Returns:
- The enable stream flag.
-
isEnableContinuousBackups
public boolean isEnableContinuousBackups()
Returns the value of the enable continuous backups / point in time recovery flag.- Returns:
- The continuous backups flag.
-
isEnableTTL
public boolean isEnableTTL()
Returns the values of the enable TTL flag.- Returns:
- The enable TTL flag.
-
getPurgeLimit
public int getPurgeLimit()
Returns the expired items purge limit.- Returns:
- The expired items purge limit, -1 for no limit.
-
getHTTPProxyHost
public String getHTTPProxyHost()
Returns the HTTP proxy host.- Returns:
- The host,
null
if none.
-
getHTTPProxyPort
public int getHTTPProxyPort()
Returns the HTTP proxy port.- Returns:
- The port, -1 if not specified.
-
getHMACSHA256Key
public String getHMACSHA256Key()
Returns the HMAC SHA-256 key.- Returns:
- The HMAC SHA-256 key (BASE 64 encoded),
null
if not specified.
-
getMetricRegistry
public com.codahale.metrics.MetricRegistry getMetricRegistry()
Returns the explicit metric registry to use.- Returns:
- The metric registry instance.
-
properties
public Properties properties()
- Specified by:
properties
in interfaceorg.infinispan.configuration.cache.StoreConfiguration
- Overrides:
properties
in classorg.infinispan.configuration.cache.AbstractStoreConfiguration
-
log
public void log()
- Specified by:
log
in interfacecom.nimbusds.common.config.LoggableConfiguration
-
-