org.infinispan.config
Class FluentConfiguration

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.config.FluentConfiguration
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable

public class FluentConfiguration
extends AbstractNamedCacheConfigurationBean

Fluent configuration base class.

Since:
5.0
Author:
Galder ZamarreƱo, Vladimir Blagojevic, Mircea.Markus@jboss.com
See Also:
Serialized Form

Nested Class Summary
static interface FluentConfiguration.AsyncConfig
          If configured all communications are asynchronous, in that whenever a thread sends a message sent over the wire, it does not wait for an acknowledgment before returning.
static interface FluentConfiguration.ClusteringConfig
          Defines clustered characteristics of the cache.
static interface FluentConfiguration.CustomInterceptorCumulator
          Enables addition of several customer interceptors
static interface FluentConfiguration.CustomInterceptorPosition
          Configures the location of a specific custom interceptor
static interface FluentConfiguration.CustomInterceptorsConfig
          Configures custom interceptors to be added to the cache.
static interface FluentConfiguration.DataContainerConfig
           
static interface FluentConfiguration.DeadlockDetectionConfig
          Configures deadlock detection.
static interface FluentConfiguration.EvictionConfig
          Controls the eviction settings for the cache.
static interface FluentConfiguration.ExpirationConfig
          Controls the default expiration settings for entries in the cache.
static interface FluentConfiguration.GroupsConfig
           
static interface FluentConfiguration.HashConfig
          Allows fine-tuning of rehashing characteristics.
static interface FluentConfiguration.IndexingConfig
          Configures indexing of entries in the cache for searching.
static interface FluentConfiguration.InvocationBatchingConfig
           
static interface FluentConfiguration.JmxStatisticsConfig
           
static interface FluentConfiguration.L1Config
          Configures the L1 cache behavior in 'distributed' caches instances.
static interface FluentConfiguration.LoadersConfig
          Holds the configuration for cache loaders and stores.
static interface FluentConfiguration.LockingConfig
          Defines the local, in-VM locking and concurrency characteristics of the cache.
static interface FluentConfiguration.RecoveryConfig
          Defines recovery configuration for the cache.
static interface FluentConfiguration.StateRetrievalConfig
          Configures how state is retrieved when a new cache joins the cluster.
static interface FluentConfiguration.StoreAsBinaryConfig
           
static interface FluentConfiguration.SyncConfig
          If configured all communications are synchronous, in that whenever a thread sends a message sent over the wire, it blocks until it receives an acknowledgment from the recipient.
static interface FluentConfiguration.TransactionConfig
          Defines transactional (JTA) characteristics of the cache.
static interface FluentConfiguration.UnsafeConfig
           
 
Field Summary
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
FluentConfiguration(Configuration config)
           
 
Method Summary
 FluentConfiguration.AsyncConfig async()
           
 Configuration build()
           
 FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
           
 FluentConfiguration.DataContainerConfig dataContainer()
           
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          This method allows configuration of the deadlock detection.
 FluentConfiguration.TransactionConfig eagerLockSingleNode(Boolean eagerLockSingleNode)
           
 FluentConfiguration.EvictionConfig eviction()
           
 FluentConfiguration.ExpirationConfig expiration()
           
 FluentConfiguration.HashConfig hash()
           
 FluentConfiguration.IndexingConfig indexing()
          This method allows configuration of the indexing subsystem.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          This method allows configuration of invocation batching.
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.L1Config l1()
           
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)
           
 FluentConfiguration.RecoveryConfig recovery()
           
protected  org.infinispan.config.AbstractFluentConfigurationBean setConfiguration(Configuration config)
           
 FluentConfiguration.StateRetrievalConfig stateRetrieval()
           
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.SyncConfig sync()
           
 FluentConfiguration.TransactionConfig syncCommitPhase(Boolean syncCommitPhase)
           
 FluentConfiguration.TransactionConfig syncRollbackPhase(Boolean syncRollbackPhase)
           
 FluentConfiguration.TransactionConfig transaction()
           
 FluentConfiguration.TransactionConfig transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
           
 FluentConfiguration.TransactionConfig transactionManagerLookupClass(Class<? extends TransactionManagerLookup> transactionManagerLookupClass)
           
 FluentConfiguration.TransactionConfig transactionSynchronizationRegistryLookup(TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup)
           
 FluentConfiguration.UnsafeConfig unsafe()
           
 FluentConfiguration.TransactionConfig useEagerLocking(Boolean useEagerLocking)
           
 FluentConfiguration.TransactionConfig useSynchronization(Boolean useSynchronization)
           
 
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FluentConfiguration

public FluentConfiguration(Configuration config)
Method Detail

locking

public FluentConfiguration.LockingConfig locking()

loaders

public FluentConfiguration.LoadersConfig loaders()

transaction

public FluentConfiguration.TransactionConfig transaction()

deadlockDetection

public 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

public FluentConfiguration.CustomInterceptorsConfig customInterceptors()

eviction

public FluentConfiguration.EvictionConfig eviction()

expiration

public FluentConfiguration.ExpirationConfig expiration()

clustering

public FluentConfiguration.ClusteringConfig clustering()

indexing

public 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

public FluentConfiguration.DataContainerConfig dataContainer()

unsafe

public FluentConfiguration.UnsafeConfig unsafe()

jmxStatistics

public FluentConfiguration.JmxStatisticsConfig jmxStatistics()
This method allows configuration of jmx statistics. When this method is called, it automatically enables jmx statistics.


storeAsBinary

public FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
This method allows configuration of lazy deserialization. When this method is called, it automatically enables lazy deserialization.


invocationBatching

public FluentConfiguration.InvocationBatchingConfig invocationBatching()
This method allows configuration of invocation batching. When this method is called, it automatically enables invocation batching.


async

public FluentConfiguration.AsyncConfig async()

sync

public FluentConfiguration.SyncConfig sync()

stateRetrieval

public FluentConfiguration.StateRetrievalConfig stateRetrieval()

l1

public FluentConfiguration.L1Config l1()

hash

public FluentConfiguration.HashConfig hash()

mode

public FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)

transactionManagerLookupClass

public FluentConfiguration.TransactionConfig transactionManagerLookupClass(Class<? extends TransactionManagerLookup> transactionManagerLookupClass)

transactionManagerLookup

public FluentConfiguration.TransactionConfig transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)

transactionSynchronizationRegistryLookup

public FluentConfiguration.TransactionConfig transactionSynchronizationRegistryLookup(TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup)

syncCommitPhase

public FluentConfiguration.TransactionConfig syncCommitPhase(Boolean syncCommitPhase)

syncRollbackPhase

public FluentConfiguration.TransactionConfig syncRollbackPhase(Boolean syncRollbackPhase)

useEagerLocking

public FluentConfiguration.TransactionConfig useEagerLocking(Boolean useEagerLocking)

eagerLockSingleNode

public FluentConfiguration.TransactionConfig eagerLockSingleNode(Boolean eagerLockSingleNode)

cacheStopTimeout

public FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)

useSynchronization

public FluentConfiguration.TransactionConfig useSynchronization(Boolean useSynchronization)

recovery

public FluentConfiguration.RecoveryConfig recovery()

build

public Configuration build()

setConfiguration

protected org.infinispan.config.AbstractFluentConfigurationBean setConfiguration(Configuration config)

-->

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