org.infinispan.config
Class Configuration.AsyncType

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.config.Configuration.AsyncType
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, Configuration.AsyncConfig, JAXBUnmarshallable
Enclosing class:
Configuration

public static class Configuration.AsyncType
extends AbstractNamedCacheConfigurationBean
implements Configuration.AsyncConfig

If this element is present, 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. This element is mutually exclusive with the <sync /> element.

Characteristics of this can be tuned here.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  Boolean asyncMarshalling
           
protected  String replQueueClass
           
protected  Long replQueueInterval
           
protected  Integer replQueueMaxElements
           
protected  Boolean useReplQueue
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 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.
 boolean equals(Object o)
           
 int hashCode()
           
 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.
 void setAsyncMarshalling(Boolean asyncMarshalling)
           
 void setReplQueueClass(String replQueueClass)
           
 void setReplQueueInterval(Long replQueueInterval)
           
 void setReplQueueMaxElements(Integer replQueueMaxElements)
           
 void setUseReplQueue(Boolean useReplQueue)
           
 Configuration.AsyncConfig useReplQueue(Boolean useReplQueue)
          If true, this forces all async communications to be queued up and sent out periodically as a batch.
 void willUnmarshall(Object parent)
          Indicates that this element is about to be unmarshalled from the XML source that was processed.
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
clone, hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useReplQueue

protected Boolean useReplQueue

replQueueMaxElements

protected Integer replQueueMaxElements

replQueueInterval

protected Long replQueueInterval

asyncMarshalling

protected Boolean asyncMarshalling

replQueueClass

protected String replQueueClass
Method Detail

accept

public void accept(ConfigurationBeanVisitor v)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

useReplQueue

public Configuration.AsyncConfig useReplQueue(Boolean useReplQueue)
Description copied from interface: Configuration.AsyncConfig
If true, this forces all async communications to be queued up and sent out periodically as a batch.

Specified by:
useReplQueue in interface Configuration.AsyncConfig

replQueueMaxElements

public Configuration.AsyncConfig replQueueMaxElements(Integer replQueueMaxElements)
Description copied from interface: Configuration.AsyncConfig
If useReplQueue is set to true, this attribute can be used to trigger flushing of the queue when it reaches a specific threshold.

Specified by:
replQueueMaxElements in interface Configuration.AsyncConfig

replQueueInterval

public Configuration.AsyncConfig replQueueInterval(Long replQueueInterval)
Description copied from interface: Configuration.AsyncConfig
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.

Specified by:
replQueueInterval in interface Configuration.AsyncConfig

asyncMarshalling

public Configuration.AsyncConfig asyncMarshalling(Boolean asyncMarshalling)
Description copied from interface: Configuration.AsyncConfig
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

Specified by:
asyncMarshalling in interface Configuration.AsyncConfig

replQueueClass

public Configuration.AsyncConfig replQueueClass(String replQueueClass)
Description copied from interface: Configuration.AsyncConfig
This overrides the replication queue implementation class. Overriding the default allows you to add behavior to the queue, typically by subclassing the default implementation.

Specified by:
replQueueClass in interface Configuration.AsyncConfig

setUseReplQueue

public void setUseReplQueue(Boolean useReplQueue)

setReplQueueMaxElements

public void setReplQueueMaxElements(Integer replQueueMaxElements)

setReplQueueInterval

public void setReplQueueInterval(Long replQueueInterval)

setAsyncMarshalling

public void setAsyncMarshalling(Boolean asyncMarshalling)

setReplQueueClass

public void setReplQueueClass(String replQueueClass)

willUnmarshall

public void willUnmarshall(Object parent)
Description copied from interface: JAXBUnmarshallable
Indicates that this element is about to be unmarshalled from the XML source that was processed.

Specified by:
willUnmarshall in interface JAXBUnmarshallable
Overrides:
willUnmarshall in class AbstractConfigurationBean
Parameters:
parent - parent component


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