org.infinispan.config
Class Configuration.DeadlockDetectionType

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

public static class Configuration.DeadlockDetectionType
extends AbstractNamedCacheConfigurationBean
implements Configuration.DeadlockDetectionConfig

This element configures deadlock detection.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  Boolean enabled
           
protected  Long spinDuration
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
Configuration.DeadlockDetectionType()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 Configuration.DeadlockDetectionConfig enabled(Boolean enabled)
          Toggle to enable/disable deadlock detection
 boolean equals(Object o)
           
 int hashCode()
           
 void setEnabled(Boolean enabled)
           
 void setSpinDuration(Long spinDuration)
           
 Configuration.DeadlockDetectionConfig spinDuration(Long spinDuration)
          Time period that determines how often is lock acquisition attempted within maximum time allowed to acquire a particular lock
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
clone, hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

protected Boolean enabled

spinDuration

protected Long spinDuration
Constructor Detail

Configuration.DeadlockDetectionType

public Configuration.DeadlockDetectionType()
Method Detail

setEnabled

public void setEnabled(Boolean enabled)

enabled

public Configuration.DeadlockDetectionConfig enabled(Boolean enabled)
Description copied from interface: Configuration.DeadlockDetectionConfig
Toggle to enable/disable deadlock detection

Specified by:
enabled in interface Configuration.DeadlockDetectionConfig

accept

public void accept(ConfigurationBeanVisitor v)

setSpinDuration

public void setSpinDuration(Long spinDuration)

spinDuration

public Configuration.DeadlockDetectionConfig spinDuration(Long spinDuration)
Description copied from interface: Configuration.DeadlockDetectionConfig
Time period that determines how often is lock acquisition attempted within maximum time allowed to acquire a particular lock

Specified by:
spinDuration in interface Configuration.DeadlockDetectionConfig

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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