| Modifier and Type | Class and Description |
|---|---|
| public static enum | TerracottaConfiguration.Consistency
Enum for various consistency settings |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| private volatile boolean | |
| private int | |
| private TerracottaConfiguration. | |
| private boolean | |
| public static final boolean | DEFAULT_CACHE_COHERENT
Default cache coherence setting |
| public static final boolean | DEFAULT_CACHE_XA
Default xa enabled |
| public static final boolean | DEFAULT_CLUSTERED
Default clustered mode |
| public static final boolean | DEFAULT_COHERENT_READS
Default coherent read behavior |
| public static final boolean | DEFAULT_COMPRESSION_ENABLED
Default compression setting |
| public static final int | DEFAULT_CONCURRENCY
Default value for concurrency of the internal Store. |
| public static final TerracottaConfiguration. | DEFAULT_CONSISTENCY_TYPE
Default cache consistency setting |
| public static final boolean | DEFAULT_COPY_ON_READ
Default copy on read setting |
| public static final boolean | DEFAULT_LOCAL_CACHE_ENABLED
Default value for whether local cache is enabled or not |
| public static final boolean | DEFAULT_LOCAL_KEY_CACHE
Default local key cache status |
| public static final int | DEFAULT_LOCAL_KEY_CACHE_SIZE
Default local key cache size |
| public static final NonstopConfiguration | DEFAULT_NON_STOP_CONFIGURATION
Default value for |
| public static final boolean | DEFAULT_ORPHAN_EVICTION
Default orphan eviction status |
| public static final int | DEFAULT_ORPHAN_EVICTION_PERIOD
Default orphan eviction period |
| public static final boolean | DEFAULT_SYNCHRONOUS_WRITES
Default setting for synchronous-write |
| private boolean | |
| private volatile boolean | |
| private boolean | |
| private int | |
| private static final Logger | |
| private NonstopConfiguration | |
| private boolean | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public TerracottaConfiguration | |
| public TerracottaConfiguration | Returns: a copy, which independent other than configurations than cannot change.Overrides java. |
| public TerracottaConfiguration | |
| public TerracottaConfiguration | Returns: this configuration instance
Deprecated
since 2.4 Use
consistency(Consistency) instead
|
| public TerracottaConfiguration | |
| public TerracottaConfiguration | |
| public TerracottaConfiguration | |
| public TerracottaConfiguration | Returns: this instanceSetter for consistency, returns this instance |
| public TerracottaConfiguration | |
| public boolean | |
| public int | |
| public TerracottaConfiguration. | |
| public boolean | |
| public int | |
| public NonstopConfiguration | Returns: theNonstopConfiguration, may be nullGet the |
| public boolean | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if configured in coherent mode.
Deprecated
since 2.4 Use
Is the cache configured for coherent or incoherent mode.
getConsistency() instead to query the Consistency or Ehcache#isNodeCoherent()
to query if the node is coherent
|
| public boolean | |
| public boolean | isCopyOnRead()
Deprecated
Check whether the [serialized value] cache should use copy on read semantics
|
| pack-priv boolean | |
| public boolean | Returns: true if local cache is enabled, otherwise falseReturns true if local cache is enabled, otherwise false |
| public boolean | |
| public boolean | Returns: true if configured for synchronouse-write, otherwise false. Default is falseIs the cache configured for synchronous-write? |
| public TerracottaConfiguration | Returns: this instanceEnable or disable the local cache |
| public TerracottaConfiguration | |
| public TerracottaConfiguration | |
| private static NonstopConfiguration | |
| public TerracottaConfiguration | Returns: this configuration instanceSet the |
| public TerracottaConfiguration | |
| public TerracottaConfiguration | |
| public void | |
| public void | setClustered(boolean
true if the cache should be clustered with Terracotta; false otherwiseIndicates whether to cluster this cache with Terracotta. |
| public void | setCoherent(boolean coherent)
Deprecated
since 2.4 Use
Used by BeanHandler to set the coherent during parsing
setConsistency(Consistency) instead
|
| public void | setCoherentReads(boolean
true if coherent reads should be used; false otherwise
Deprecated
Sets whether this cache should use coherent reads (usually should be true unless optimizing for
read-only).
|
| public void | setCompressionEnabled(boolean enabled)
Used by BeanHandler to set the compressionEnabled flag during parsing |
| public void | |
| public void | |
| public void | |
| public void | setCopyOnRead(boolean isCopyOnRead)
Deprecated
Used by BeanHandler to set the copyOnRead flag during parsing
|
| public void | |
| public void | setLocalKeyCache(boolean
true if a local key cache should be used; false otherwiseSets whether this cache should use an unclustered local key cache (usually should be false unless optimizing for a small read-only cache) Defaults to false. |
| public void | setLocalKeyCacheSize(int
the size of the local key cache in number of keys localKeyCacheSize)Sets maximum size of the local key cache (usually the size of the key set of the cache or cache partition). |
| public void | setOrphanEviction(boolean
true if orphan eviction should be used; false otherwiseSets whether this cache should perform orphan eviction (usually should be true). |
| public void | setOrphanEvictionPeriod(int
every how many regular evictions an orphan eviction should occur orphanEvictionPeriod)Set how often this cache should perform orphan eviction (measured in regular eviction periods). |
| public void | setSynchronousWrites(boolean
true for using synchronous-write synchronousWrites)Set the value for synchronous-write |
| public TerracottaConfiguration |
| cacheXA | back to summary |
|---|---|
| private boolean cacheXA | |
| clustered | back to summary |
|---|---|
| private boolean clustered | |
| coherentReads | back to summary |
|---|---|
| private boolean coherentReads | |
| compressionEnabled | back to summary |
|---|---|
| private volatile boolean compressionEnabled | |
| concurrency | back to summary |
|---|---|
| private int concurrency | |
| consistency | back to summary |
|---|---|
| private TerracottaConfiguration. | |
| copyOnReadSet | back to summary |
|---|---|
| private boolean copyOnReadSet | |
| DEFAULT_CACHE_COHERENT | back to summary |
|---|---|
| public static final boolean DEFAULT_CACHE_COHERENT
Deprecated since 2.4 Use Default cache coherence setting | |
| DEFAULT_CACHE_XA | back to summary |
|---|---|
| public static final boolean DEFAULT_CACHE_XA Default xa enabled | |
| DEFAULT_CLUSTERED | back to summary |
|---|---|
| public static final boolean DEFAULT_CLUSTERED Default clustered mode | |
| DEFAULT_COHERENT_READS | back to summary |
|---|---|
| public static final boolean DEFAULT_COHERENT_READS Default coherent read behavior | |
| DEFAULT_COMPRESSION_ENABLED | back to summary |
|---|---|
| public static final boolean DEFAULT_COMPRESSION_ENABLED Default compression setting | |
| DEFAULT_CONCURRENCY | back to summary |
|---|---|
| public static final int DEFAULT_CONCURRENCY Default value for concurrency of the internal Store. | |
| DEFAULT_CONSISTENCY_TYPE | back to summary |
|---|---|
| public static final TerracottaConfiguration. Default cache consistency setting | |
| DEFAULT_COPY_ON_READ | back to summary |
|---|---|
| public static final boolean DEFAULT_COPY_ON_READ Default copy on read setting | |
| DEFAULT_LOCAL_CACHE_ENABLED | back to summary |
|---|---|
| public static final boolean DEFAULT_LOCAL_CACHE_ENABLED Default value for whether local cache is enabled or not | |
| DEFAULT_LOCAL_KEY_CACHE | back to summary |
|---|---|
| public static final boolean DEFAULT_LOCAL_KEY_CACHE Default local key cache status | |
| DEFAULT_LOCAL_KEY_CACHE_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_LOCAL_KEY_CACHE_SIZE Default local key cache size | |
| DEFAULT_NON_STOP_CONFIGURATION | back to summary |
|---|---|
| public static final NonstopConfiguration DEFAULT_NON_STOP_CONFIGURATION Default value for | |
| DEFAULT_ORPHAN_EVICTION | back to summary |
|---|---|
| public static final boolean DEFAULT_ORPHAN_EVICTION Default orphan eviction status | |
| DEFAULT_ORPHAN_EVICTION_PERIOD | back to summary |
|---|---|
| public static final int DEFAULT_ORPHAN_EVICTION_PERIOD Default orphan eviction period | |
| DEFAULT_SYNCHRONOUS_WRITES | back to summary |
|---|---|
| public static final boolean DEFAULT_SYNCHRONOUS_WRITES Default setting for synchronous-write | |
| isCopyOnRead | back to summary |
|---|---|
| private boolean isCopyOnRead | |
| localCacheEnabled | back to summary |
|---|---|
| private volatile boolean localCacheEnabled | |
| localKeyCache | back to summary |
|---|---|
| private boolean localKeyCache | |
| localKeyCacheSize | back to summary |
|---|---|
| private int localKeyCacheSize | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| nonStopConfiguration | back to summary |
|---|---|
| private NonstopConfiguration nonStopConfiguration | |
| orphanEviction | back to summary |
|---|---|
| private boolean orphanEviction | |
| orphanEvictionPeriod | back to summary |
|---|---|
| private int orphanEvictionPeriod | |
| synchronousWrites | back to summary |
|---|---|
| private boolean synchronousWrites | |
| TerracottaConfiguration | back to summary |
|---|---|
| public TerracottaConfiguration() | |
| addNonstop | back to summary |
|---|---|
| public void addNonstop(NonstopConfiguration nonstopConfiguration) Add the | |
| assertArgumentNotNull | back to summary |
|---|---|
| private void assertArgumentNotNull(String name, Object object) | |
| cacheXA | back to summary |
|---|---|
public TerracottaConfiguration cacheXA(boolean cacheXA)
| |
| clone | back to summary |
|---|---|
| public TerracottaConfiguration clone() Overrides java. Clones this object, following the usual contract.
| |
| clustered | back to summary |
|---|---|
public TerracottaConfiguration clustered(boolean clustered)
| |
| coherent | back to summary |
|---|---|
| public TerracottaConfiguration coherent(boolean coherent)
Deprecated since 2.4 Use
| |
| coherentReads | back to summary |
|---|---|
| public TerracottaConfiguration coherentReads(boolean coherentReads)
Deprecated
| |
| compressionEnabled | back to summary |
|---|---|
public TerracottaConfiguration compressionEnabled(boolean enabled)
| |
| concurrency | back to summary |
|---|---|
public TerracottaConfiguration concurrency(final int concurrency)
| |
| consistency | back to summary |
|---|---|
| public TerracottaConfiguration consistency(TerracottaConfiguration. Setter for consistency, returns this instance
| |
| copyOnRead | back to summary |
|---|---|
| public TerracottaConfiguration copyOnRead(boolean isCopyOnRead)
Deprecated
| |
| getCoherentReads | back to summary |
|---|---|
| public boolean getCoherentReads()
Deprecated
Check whether coherent reads are enabled
| |
| getConcurrency | back to summary |
|---|---|
| public int getConcurrency() Get the value of concurrency. This value cannot be changed once cache is initialized. | |
| getConsistency | back to summary |
|---|---|
| public TerracottaConfiguration. Getter for consistency
| |
| getLocalKeyCache | back to summary |
|---|---|
| public boolean getLocalKeyCache() Check whether the local key cache is enabled | |
| getLocalKeyCacheSize | back to summary |
|---|---|
| public int getLocalKeyCacheSize() Get the size limit of the local key cache (if enabled) | |
| getNonstopConfiguration | back to summary |
|---|---|
| public NonstopConfiguration getNonstopConfiguration() Get the
| |
| getOrphanEviction | back to summary |
|---|---|
| public boolean getOrphanEviction() Check whether orphan eviction is enabled | |
| getOrphanEvictionPeriod | back to summary |
|---|---|
| public int getOrphanEvictionPeriod() Get the number of regular eviction cycles between orphan evictions | |
| isCacheXA | back to summary |
|---|---|
| public boolean isCacheXA() Check whether the [serialized value] cache is an XA enabled cache | |
| isClustered | back to summary |
|---|---|
| public boolean isClustered() Check whether clustering is enabled | |
| isCoherent | back to summary |
|---|---|
| public boolean isCoherent()
Deprecated since 2.4 Use Is the cache configured for coherent or incoherent mode.
| |
| isCompressionEnabled | back to summary |
|---|---|
| public boolean isCompressionEnabled() Check whether compression is enabled | |
| isCopyOnRead | back to summary |
|---|---|
| public boolean isCopyOnRead()
Deprecated
Check whether the [serialized value] cache should use copy on read semantics
| |
| isCopyOnReadSet | back to summary |
|---|---|
| pack-priv boolean isCopyOnReadSet() Whether the copyOnRead was explicitly set
| |
| isLocalCacheEnabled | back to summary |
|---|---|
| public boolean isLocalCacheEnabled() Returns true if local cache is enabled, otherwise false
| |
| isNonstopEnabled | back to summary |
|---|---|
| public boolean isNonstopEnabled() Returns true if nonstop is enabled
| |
| isSynchronousWrites | back to summary |
|---|---|
| public boolean isSynchronousWrites() Is the cache configured for synchronous-write?
| |
| localCacheEnabled | back to summary |
|---|---|
| public TerracottaConfiguration localCacheEnabled(final boolean localCacheEnabled) Enable or disable the local cache
| |
| localKeyCache | back to summary |
|---|---|
public TerracottaConfiguration localKeyCache(boolean localKeyCache)
| |
| localKeyCacheSize | back to summary |
|---|---|
public TerracottaConfiguration localKeyCacheSize(int localKeyCacheSize)
| |
| makeDefaultNonstopConfiguration | back to summary |
|---|---|
| private static NonstopConfiguration makeDefaultNonstopConfiguration() | |
| nonstop | back to summary |
|---|---|
| public TerracottaConfiguration nonstop(NonstopConfiguration nonstopConfiguration) Set the
| |
| orphanEviction | back to summary |
|---|---|
public TerracottaConfiguration orphanEviction(boolean orphanEviction)
| |
| orphanEvictionPeriod | back to summary |
|---|---|
public TerracottaConfiguration orphanEvictionPeriod(int orphanEvictionPeriod)
| |
| setCacheXA | back to summary |
|---|---|
| public void setCacheXA(boolean cacheXA) Used by BeanHandler to set the cacheXA flag during parsing | |
| setClustered | back to summary |
|---|---|
| public void setClustered(boolean clustered) Indicates whether to cluster this cache with Terracotta. Defaults to true.
| |
| setCoherent | back to summary |
|---|---|
| public void setCoherent(boolean coherent)
Deprecated since 2.4 Use Used by BeanHandler to set the coherent during parsing
| |
| setCoherentReads | back to summary |
|---|---|
| public void setCoherentReads(boolean coherentReads)
Deprecated
Sets whether this cache should use coherent reads (usually should be true unless optimizing for read-only). Defaults to true.
| |
| setCompressionEnabled | back to summary |
|---|---|
| public void setCompressionEnabled(boolean enabled) Used by BeanHandler to set the compressionEnabled flag during parsing | |
| setConcurrency | back to summary |
|---|---|
| public void setConcurrency(final int concurrency) Sets the value of concurrency. Throws | |
| setConsistency | back to summary |
|---|---|
| public void setConsistency(TerracottaConfiguration. Setter for consistency | |
| setConsistency | back to summary |
|---|---|
| public void setConsistency(String consistency) Setter for consistency | |
| setCopyOnRead | back to summary |
|---|---|
| public void setCopyOnRead(boolean isCopyOnRead)
Deprecated
Used by BeanHandler to set the copyOnRead flag during parsing
| |
| setLocalCacheEnabled | back to summary |
|---|---|
| public void setLocalCacheEnabled(final boolean localCacheEnabled) Enable or disable the local cache | |
| setLocalKeyCache | back to summary |
|---|---|
| public void setLocalKeyCache(boolean localKeyCache) Sets whether this cache should use an unclustered local key cache (usually should be false unless optimizing for a small read-only cache) Defaults to false.
| |
| setLocalKeyCacheSize | back to summary |
|---|---|
| public void setLocalKeyCacheSize(int localKeyCacheSize) Sets maximum size of the local key cache (usually the size of the key set of the cache or cache partition). Defaults to 300000.
| |
| setOrphanEviction | back to summary |
|---|---|
| public void setOrphanEviction(boolean orphanEviction) Sets whether this cache should perform orphan eviction (usually should be true). Orphans are elements that are not present on any node in the cluster anymore and hence need additional routines to be detected since they're not locally available anywhere. Defaults to true.
| |
| setOrphanEvictionPeriod | back to summary |
|---|---|
| public void setOrphanEvictionPeriod(int orphanEvictionPeriod) Set how often this cache should perform orphan eviction (measured in regular eviction periods). Defaults to 4).
| |
| setSynchronousWrites | back to summary |
|---|---|
| public void setSynchronousWrites(boolean synchronousWrites) Set the value for synchronous-write
| |
| synchronousWrites | back to summary |
|---|---|
public TerracottaConfiguration synchronousWrites(boolean synchronousWrites)
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TerracottaConfiguration. | EVENTUAL
Eventual consistency |
| public static final TerracottaConfiguration. | STRONG
Strong consistency |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TerracottaConfiguration. | |
| public static TerracottaConfiguration. |
| EVENTUAL | back to summary |
|---|---|
| public static final TerracottaConfiguration. Eventual consistency | |
| STRONG | back to summary |
|---|---|
| public static final TerracottaConfiguration. Strong consistency | |
| Consistency | back to summary |
|---|---|
| private Consistency() | |
| valueOf | back to summary |
|---|---|
| public static TerracottaConfiguration. | |
| values | back to summary |
|---|---|
| public static TerracottaConfiguration. | |