Class AsyncStoreConfiguration

java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<AsyncStoreConfiguration>
org.infinispan.configuration.cache.AsyncStoreConfiguration
All Implemented Interfaces:
org.infinispan.commons.configuration.attributes.Matchable<AsyncStoreConfiguration>, org.infinispan.commons.configuration.attributes.Updatable<AsyncStoreConfiguration>

public class AsyncStoreConfiguration extends org.infinispan.commons.configuration.attributes.ConfigurationElement<AsyncStoreConfiguration>
Configuration for the async cache store. If enabled, this provides you with asynchronous writes to the cache store, giving you 'write-behind' caching.
Author:
pmuir
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
     
    static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
     
    static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>
     

    Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement

    attributes, CHILDLESS, children, element, repeated
  • Constructor Summary

    Constructors
    Constructor
    Description
    AsyncStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.infinispan.commons.configuration.attributes.AttributeSet
     
    boolean
    If true, all modifications to this cache store happen asynchronously, on a separate thread.
    boolean
     
    int
    Sets the size of the modification queue for the async store.

    Methods inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement

    attributes, child, children, children, elementName, equals, extractAttributes, findAttribute, hashCode, isModified, list, matches, matches, matches, toString, update, update, update, validateUpdate, validateUpdate, validateUpdate, write

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ENABLED

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> ENABLED
    • MODIFICATION_QUEUE_SIZE

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> MODIFICATION_QUEUE_SIZE
    • FAIL_SILENTLY

      public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> FAIL_SILENTLY
  • Constructor Details

    • AsyncStoreConfiguration

      public AsyncStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes)
  • Method Details

    • attributeDefinitionSet

      public static org.infinispan.commons.configuration.attributes.AttributeSet attributeDefinitionSet()
    • enabled

      public boolean enabled()
      If true, all modifications to this cache store happen asynchronously, on a separate thread.
    • modificationQueueSize

      public int modificationQueueSize()
      Sets the size of the modification queue for the async store. If updates are made at a rate that is faster than the underlying cache store can process this queue, then the async store behaves like a synchronous store for that period, blocking until the queue can accept more elements.
    • failSilently

      public boolean failSilently()