org.infinispan.config
Interface FluentConfiguration.L1Config

All Superinterfaces:
FluentConfiguration.ClusteringConfig
All Known Implementing Classes:
Configuration.L1Type
Enclosing class:
FluentConfiguration

public static interface FluentConfiguration.L1Config
extends FluentConfiguration.ClusteringConfig

Configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes, this element is ignored.


Method Summary
 Configuration build()
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
           
 FluentConfiguration.DataContainerConfig dataContainer()
           
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          This method allows configuration of the deadlock detection.
 FluentConfiguration.L1Config disable()
           
 FluentConfiguration.EvictionConfig eviction()
           
 FluentConfiguration.ExpirationConfig expiration()
           
 FluentConfiguration.IndexingConfig indexing()
          This method allows configuration of the indexing subsystem.
 FluentConfiguration.L1Config invalidationThreshold(Integer threshold)
           Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          This method allows configuration of invocation batching.
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.L1Config lifespan(Long lifespan)
          Maximum lifespan of an entry placed in the L1 cache.
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.L1Config onRehash(Boolean onRehash)
          If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether.
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.TransactionConfig transaction()
           
 FluentConfiguration.UnsafeConfig unsafe()
           
 
Methods inherited from interface org.infinispan.config.FluentConfiguration.ClusteringConfig
async, hash, l1, mode, stateRetrieval, sync
 

Method Detail

lifespan

FluentConfiguration.L1Config lifespan(Long lifespan)
Maximum lifespan of an entry placed in the L1 cache.

Parameters:
lifespan -

onRehash

FluentConfiguration.L1Config onRehash(Boolean onRehash)
If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether.

Parameters:
onRehash -

disable

FluentConfiguration.L1Config disable()

invalidationThreshold

FluentConfiguration.L1Config invalidationThreshold(Integer threshold)

Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.

By default multicast will be used.

If the threshold is set to -1, then unicasts will always be used. If the threshold is set to 0, then multicast will be always be used.

Parameters:
threshold - the threshold over which to use a multicast

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.