org.infinispan.configuration.cache
Class AsyncConfiguration

java.lang.Object
  extended by org.infinispan.configuration.cache.AsyncConfiguration

public class AsyncConfiguration
extends Object

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. Asynchronous configuration is mutually exclusive with synchronous configuration.


Method Summary
 boolean asyncMarshalling()
          Asynchronous marshalling allows the caller to return even quicker, but it can suffer from reordering of operations.
 boolean equals(Object o)
           
 int hashCode()
           
 ReplicationQueue replQueue()
          The replication queue in use, by default ReplicationQueueImpl.
 long replQueueInterval()
          If useReplQueue is set to true, this attribute controls how often the asynchronous thread used to flush the replication queue runs.
 int replQueueMaxElements()
          If useReplQueue is set to true, this attribute can be used to trigger flushing of the queue when it reaches a specific threshold.
 String toString()
           
 boolean useReplQueue()
          If true, this forces all async communications to be queued up and sent out periodically as a batch.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

asyncMarshalling

public boolean asyncMarshalling()
Asynchronous marshalling allows the caller to return even quicker, but it can suffer from reordering of operations. You can find more information at https://docs.jboss.org/author/display/ISPN/Asynchronous+Options.


replQueue

public ReplicationQueue replQueue()
The replication queue in use, by default ReplicationQueueImpl.


replQueueInterval

public long replQueueInterval()
If useReplQueue is set to true, this attribute controls how often the asynchronous thread used to flush the replication queue runs.


replQueueMaxElements

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


useReplQueue

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


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

-->

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