org.infinispan.config
Interface FluentConfiguration.AsyncConfig

All Superinterfaces:
FluentConfiguration.ClusteringConfig
All Known Implementing Classes:
Configuration.AsyncType
Enclosing class:
FluentConfiguration

public static interface FluentConfiguration.AsyncConfig
extends FluentConfiguration.ClusteringConfig

If configured all communications are asynchronous, in that whenever a thread sends a message sent over the wire, it does not wait for an acknowledgment before returning. AsyncConfig is mutually exclusive with the SyncConfig


Method Summary
 FluentConfiguration.AsyncConfig asyncMarshalling(Boolean asyncMarshalling)
          If true, asynchronous marshalling is enabled which means that caller can return even quicker, but it can suffer from reordering of operations.
 Configuration build()
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
           
 FluentConfiguration.DataContainerConfig dataContainer()
           
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          This method allows configuration of the deadlock detection.
 FluentConfiguration.EvictionConfig eviction()
           
 FluentConfiguration.ExpirationConfig expiration()
           
 FluentConfiguration.IndexingConfig indexing()
          This method allows configuration of the indexing subsystem.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          This method allows configuration of invocation batching.
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.AsyncConfig replQueueClass(Class<? extends ReplicationQueue> replQueueClass)
          This overrides the replication queue implementation class.
 FluentConfiguration.AsyncConfig replQueueInterval(Long replQueueInterval)
          If useReplQueue is set to true, this attribute controls how often the asynchronous thread used to flush the replication queue runs.
 FluentConfiguration.AsyncConfig replQueueMaxElements(Integer replQueueMaxElements)
          If useReplQueue is set to true, this attribute can be used to trigger flushing of the queue when it reaches a specific threshold.
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.TransactionConfig transaction()
           
 FluentConfiguration.UnsafeConfig unsafe()
           
 FluentConfiguration.AsyncConfig useReplQueue(Boolean useReplQueue)
          If true, this forces all async communications to be queued up and sent out periodically as a batch.
 
Methods inherited from interface org.infinispan.config.FluentConfiguration.ClusteringConfig
async, hash, l1, mode, stateRetrieval, sync
 

Method Detail

useReplQueue

FluentConfiguration.AsyncConfig useReplQueue(Boolean useReplQueue)
If true, this forces all async communications to be queued up and sent out periodically as a batch.

Parameters:
useReplQueue -

replQueueMaxElements

FluentConfiguration.AsyncConfig replQueueMaxElements(Integer replQueueMaxElements)
If useReplQueue is set to true, this attribute can be used to trigger flushing of the queue when it reaches a specific threshold.

Parameters:
replQueueMaxElements -

replQueueInterval

FluentConfiguration.AsyncConfig replQueueInterval(Long replQueueInterval)
If useReplQueue is set to true, this attribute controls how often the asynchronous thread used to flush the replication queue runs. This should be a positive integer which represents thread wakeup time in milliseconds.

Parameters:
replQueueInterval -

asyncMarshalling

FluentConfiguration.AsyncConfig asyncMarshalling(Boolean asyncMarshalling)
If true, asynchronous marshalling is enabled which means that caller can return even quicker, but it can suffer from reordering of operations. You can find more information here

Parameters:
asyncMarshalling -

replQueueClass

FluentConfiguration.AsyncConfig replQueueClass(Class<? extends ReplicationQueue> replQueueClass)
This overrides the replication queue implementation class. Overriding the default allows you to add behavior to the queue, typically by subclassing the default implementation.

Parameters:
replQueueClass -

locking

FluentConfiguration.LockingConfig locking()

loaders

FluentConfiguration.LoadersConfig loaders()

transaction

FluentConfiguration.TransactionConfig transaction()

deadlockDetection

FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
This method allows configuration of the deadlock detection. When this method is called, it automatically enables deadlock detection. So, if you want it to be disabled, make sure you call FluentConfiguration.DeadlockDetectionConfig.disable()


customInterceptors

FluentConfiguration.CustomInterceptorsConfig customInterceptors()

eviction

FluentConfiguration.EvictionConfig eviction()

expiration

FluentConfiguration.ExpirationConfig expiration()

clustering

FluentConfiguration.ClusteringConfig clustering()

indexing

FluentConfiguration.IndexingConfig indexing()
This method allows configuration of the indexing subsystem. When this method is called, it automatically enables indexing. So, if you want it to be disabled, make sure you call FluentConfiguration.IndexingConfig.disable()


dataContainer

FluentConfiguration.DataContainerConfig dataContainer()

unsafe

FluentConfiguration.UnsafeConfig unsafe()

jmxStatistics

FluentConfiguration.JmxStatisticsConfig jmxStatistics()
This method allows configuration of jmx statistics. When this method is called, it automatically enables jmx statistics.


storeAsBinary

FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
This method allows configuration of lazy deserialization. When this method is called, it automatically enables lazy deserialization.


invocationBatching

FluentConfiguration.InvocationBatchingConfig invocationBatching()
This method allows configuration of invocation batching. When this method is called, it automatically enables invocation batching.


build

Configuration build()

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.