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.
-
Field Summary
Fields inherited from class org.infinispan.configuration.cache.AbstractStoreConfiguration
attributes, MAX_BATCH_SIZE, PRELOAD, PROPERTIES, PURGE_ON_STARTUP, READ_ONLY, SEGMENTED, SHARED, TRANSACTIONAL, WRITE_ONLY
Fields inherited from interface com.nimbusds.common.config.LoggableConfiguration
LOG_CATEGORY
-
Constructor Summary
ConstructorDescriptionDynamoDBStoreConfiguration
(org.infinispan.commons.configuration.attributes.AttributeSet attributes, org.infinispan.configuration.cache.AsyncStoreConfiguration asyncConfig) Creates a new DynamoDB store configuration. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.infinispan.commons.configuration.attributes.AttributeSet
Returns the attribute definitions for the DynamoDB store configuration.Returns the name of the optional range key to apply to all DynamoDB operations.Returns the DynamoDB endpoint.Returns the HMAC SHA-256 key.Returns the HTTP proxy host.int
Returns the HTTP proxy port.Returns the optional indexed DynamoDB attributes.Returns the class for transforming between Infinispan entries (key / value pairs and optional metadata) and a corresponding DynamoDB item.com.codahale.metrics.MetricRegistry
Returns the explicit metric registry to use.com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput
Returns the read and write capacity to provision when creating a new DynamoDB table.long
Returns the expired items purge limit.Returns the maximum read capacity to use when scanning a DynamoDB table for expired items.Returns the optional class for executing direct queries against DynamoDB.Returns the value of the optional range key.com.amazonaws.regions.Regions
Returns the AWS region.Returns the optional DynamoDB table prefix.boolean
Returns the consistent reads flag.boolean
Returns the value of the enable continuous backups / point in time recovery flag.boolean
Returns the value of the enable stream flag.boolean
Returns the values of the enable TTL flag.boolean
Returns the setting for creating the DynamoDB table with encryption at rest.void
log()
boolean
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfiguration
async, attributes, equals, fetchPersistentState, hashCode, ignoreModifications, maxBatchSize, preload, purgeOnStartup, shared, toString, transactional, writeOnly
-
Constructor Details
-
DynamoDBStoreConfiguration
public DynamoDBStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, org.infinispan.configuration.cache.AsyncStoreConfiguration asyncConfig) Creates a new DynamoDB store configuration.- Parameters:
attributes
- The configuration attributes. Must not benull
.asyncConfig
- Configuration for the async cache loader.
-
-
Method Details
-
attributeDefinitionSet
Returns the attribute definitions for the DynamoDB store configuration.- Returns:
- The attribute definitions.
-
segmented
- Specified by:
segmented
in interfaceorg.infinispan.configuration.cache.StoreConfiguration
- Overrides:
segmented
in classorg.infinispan.configuration.cache.AbstractStoreConfiguration
-
getEndpoint
Returns the DynamoDB endpoint.- Returns:
- The DynamoDB endpoint,
null
if not set.
-
getRegion
Returns the AWS region.- Returns:
- The AWS region.
-
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
Returns the optional class for executing direct queries against DynamoDB.See
QueryExecutor
- Returns:
- The query executor class,
null
if not specified.
-
getIndexedAttributes
Returns the optional indexed DynamoDB attributes.- Returns:
- The indexed attributes,
null
if no specified.
-
isConsistentReads
Returns the consistent reads flag.- Returns:
true
for strong consistent reads,false
for eventually consistent.
-
getProvisionedThroughput
Returns the read and write capacity to provision when creating a new DynamoDB table.- Returns:
- The read and write capacity.
-
getPurgeMaxReadCapacity
Returns the maximum read capacity to use when scanning a DynamoDB table for expired items.- Returns:
- The maximum read capacity to use when scanning a DynamoDB table for expired items.
-
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
Returns the optional DynamoDB table prefix.- Returns:
- The DynamoDB table prefix, empty string if not set.
-
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
Returns the value of the optional range key.- Returns:
- The range key value,
null
if not specified.
-
isEnableStream
Returns the value of the enable stream flag.- Returns:
- The enable stream flag.
-
isEnableContinuousBackups
Returns the value of the enable continuous backups / point in time recovery flag.- Returns:
- The continuous backups flag.
-
isEnableTTL
Returns the values of the enable TTL flag.- Returns:
- The enable TTL flag.
-
getPurgeLimit
Returns the expired items purge limit.- Returns:
- The expired items purge limit, -1 for no limit.
-
getHTTPProxyHost
Returns the HTTP proxy host.- Returns:
- The host,
null
if none.
-
getHTTPProxyPort
Returns the HTTP proxy port.- Returns:
- The port, -1 if not specified.
-
getHMACSHA256Key
Returns the HMAC SHA-256 key.- Returns:
- The HMAC SHA-256 key (BASE 64 encoded),
null
if not specified.
-
getMetricRegistry
Returns the explicit metric registry to use.- Returns:
- The metric registry instance.
-
properties
- Specified by:
properties
in interfaceorg.infinispan.configuration.cache.StoreConfiguration
- Overrides:
properties
in classorg.infinispan.configuration.cache.AbstractStoreConfiguration
-
log
- Specified by:
log
in interfacecom.nimbusds.common.config.LoggableConfiguration
-