org.infinispan.config
Interface Configuration.AsyncConfig

All Known Implementing Classes:
Configuration.AsyncType
Enclosing class:
Configuration

public static interface Configuration.AsyncConfig

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

Since:
5.0
Author:
Vladimir Blagojevic

Method Summary
 Configuration.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.AsyncConfig replQueueClass(String replQueueClass)
          This overrides the replication queue implementation class.
 Configuration.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.
 Configuration.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.
 Configuration.AsyncConfig useReplQueue(Boolean useReplQueue)
          If true, this forces all async communications to be queued up and sent out periodically as a batch.
 

Method Detail

useReplQueue

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

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

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

Configuration.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:
useAsyncMarshalling -

replQueueClass

Configuration.AsyncConfig replQueueClass(String 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:
classname -


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