Class 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

      Constructors 
      Constructor Description
      DynamoDBStoreConfiguration​(org.infinispan.commons.configuration.attributes.AttributeSet attributes, org.infinispan.configuration.cache.AsyncStoreConfiguration asyncConfig)
      Creates a new DynamoDB store configuration.
    • Constructor Detail

      • 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 be null.
        asyncConfig - Configuration for the async cache loader.
    • 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.
      • segmented

        public boolean segmented()
        Specified by:
        segmented in interface org.infinispan.configuration.cache.StoreConfiguration
        Overrides:
        segmented in class org.infinispan.configuration.cache.AbstractStoreConfiguration
      • 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.

        See DynamoDBItemTransformer.

        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.
      • 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.
      • getPurgeMaxReadCapacity

        public 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

        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 long 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 interface org.infinispan.configuration.cache.StoreConfiguration
        Overrides:
        properties in class org.infinispan.configuration.cache.AbstractStoreConfiguration
      • log

        public void log()
        Specified by:
        log in interface com.nimbusds.common.config.LoggableConfiguration