org.infinispan.config
Interface FluentConfiguration.ClusteringConfig
- All Known Subinterfaces:
- FluentConfiguration.AsyncConfig, FluentConfiguration.L1Config, FluentConfiguration.StateRetrievalConfig, FluentConfiguration.SyncConfig
- All Known Implementing Classes:
- Configuration.AsyncType, Configuration.ClusteringType, Configuration.L1Type, Configuration.StateRetrievalType, Configuration.SyncType
- Enclosing class:
- FluentConfiguration
public static interface FluentConfiguration.ClusteringConfig
Defines clustered characteristics of the cache.
mode
FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)
- Cache mode. For distribution, set mode to either 'd', 'dist' or 'distribution'. For
replication, use either 'r', 'repl' or 'replication'. Finally, for invalidation, 'i', 'inv'
or 'invalidation'. If the cache mode is set to 'l' or 'local', the cache in question will
not support clustering even if its cache manager does.
async
FluentConfiguration.AsyncConfig async()
- Configure async sub element. Once this method is invoked users cannot subsequently invoke
configureSync()
as two are mutually exclusive
- Returns:
- AsyncConfig element
sync
FluentConfiguration.SyncConfig sync()
- Configure sync sub element. Once this method is invoked users cannot subsequently invoke
configureAsync()
as two are mutually exclusive
- Returns:
- SyncConfig element
stateRetrieval
FluentConfiguration.StateRetrievalConfig stateRetrieval()
- Configure stateRetrieval sub element
- Returns:
- StateRetrievalConfig element
l1
FluentConfiguration.L1Config l1()
- This method allows configuration of the L1 cache for distributed
caches. When this method is called, it automatically enables L1. So,
if you want it to be disabled, make sure you call
FluentConfiguration.L1Config.disable()
hash
FluentConfiguration.HashConfig hash()
- * Configure hash sub element
- Returns:
- HashConfig element
locking
FluentConfiguration.LockingConfig locking()
loaders
FluentConfiguration.LoadersConfig loaders()
transaction
FluentConfiguration.TransactionConfig transaction()
deadlockDetection
FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
- This method allows configuration of the deadlock detection. When this
method is called, it automatically enables deadlock detection. So, if
you want it to be disabled, make sure you call
FluentConfiguration.DeadlockDetectionConfig.disable()
customInterceptors
FluentConfiguration.CustomInterceptorsConfig customInterceptors()
eviction
FluentConfiguration.EvictionConfig eviction()
expiration
FluentConfiguration.ExpirationConfig expiration()
clustering
FluentConfiguration.ClusteringConfig clustering()
indexing
FluentConfiguration.IndexingConfig indexing()
- This method allows configuration of the indexing subsystem. When
this method is called, it automatically enables indexing. So, if you
want it to be disabled, make sure you call
FluentConfiguration.IndexingConfig.disable()
dataContainer
FluentConfiguration.DataContainerConfig dataContainer()
unsafe
FluentConfiguration.UnsafeConfig unsafe()
jmxStatistics
FluentConfiguration.JmxStatisticsConfig jmxStatistics()
- This method allows configuration of jmx statistics. When this method is
called, it automatically enables jmx statistics.
storeAsBinary
FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
- This method allows configuration of lazy deserialization. When this
method is called, it automatically enables lazy deserialization.
invocationBatching
FluentConfiguration.InvocationBatchingConfig invocationBatching()
- This method allows configuration of invocation batching. When
this method is called, it automatically enables invocation batching.
build
Configuration build()
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.