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

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

    Modifier and Type
    Method
    Description
    static 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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 be null.
      asyncConfig - Configuration for the async cache loader.
  • Method Details

    • 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

      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

      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.

      See getQueryExecutorClass()

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

      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

      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

      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

      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

      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