ehcache

net.sf.ehcache.config
Class TerracottaConfiguration

java.lang.Object
  extended by net.sf.ehcache.config.TerracottaConfiguration
All Implemented Interfaces:
java.lang.Cloneable

public class TerracottaConfiguration
extends java.lang.Object
implements java.lang.Cloneable

Class to hold the Terracotta configuration - either a pointer to the real config or a container for embedded config.

Author:
[email protected]

Nested Class Summary
static class TerracottaConfiguration.ValueMode
          Represents whether values are stored with serialization in the clustered store or through Terracotta clustered identity.
 
Constructor Summary
TerracottaConfiguration()
           
 
Method Summary
 TerracottaConfiguration clone()
          Clones this object, following the usual contract.
 boolean getCoherentReads()
          Check whether coherent reads are enabled
 TerracottaConfiguration.ValueMode getValueMode()
          Get the value mode in terms of the mode enum
 boolean isClustered()
          Check whether clustering is enabled
 void setClustered(boolean clustered)
          Used by BeanHandler to set the clustered flag during parsing
 void setCoherentReads(boolean coherentReads)
          Used by BeanHandler to set the coherentReads flag during parsing
 void setValueMode(java.lang.String valueMode)
          Used by BeanHandler to set the mode during parsing.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerracottaConfiguration

public TerracottaConfiguration()
Method Detail

clone

public TerracottaConfiguration clone()
                              throws java.lang.CloneNotSupportedException
Clones this object, following the usual contract.

Overrides:
clone in class java.lang.Object
Returns:
a copy, which independent other than configurations than cannot change.
Throws:
java.lang.CloneNotSupportedException

setClustered

public void setClustered(boolean clustered)
Used by BeanHandler to set the clustered flag during parsing


isClustered

public boolean isClustered()
Check whether clustering is enabled


setCoherentReads

public void setCoherentReads(boolean coherentReads)
Used by BeanHandler to set the coherentReads flag during parsing


getCoherentReads

public boolean getCoherentReads()
Check whether coherent reads are enabled


setValueMode

public void setValueMode(java.lang.String valueMode)
Used by BeanHandler to set the mode during parsing. Convert valueMode string to uppercase and look up enum constant in ValueMode.


getValueMode

public TerracottaConfiguration.ValueMode getValueMode()
Get the value mode in terms of the mode enum


ehcache

true