org.infinispan.configuration.cache
Class L1ConfigurationBuilder

java.lang.Object
  extended by org.infinispan.configuration.cache.L1ConfigurationBuilder
All Implemented Interfaces:
ClusteringConfigurationChildBuilder, ConfigurationChildBuilder

public class L1ConfigurationBuilder
extends Object

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


Method Summary
 AsyncConfigurationBuilder async()
          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.
 Configuration build()
           
 L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis)
          How often the L1 requestors map is cleaned up of stale items
 ClusteringConfigurationBuilder clustering()
           
 CustomInterceptorsConfigurationBuilder customInterceptors()
           
 DataContainerConfigurationBuilder dataContainer()
           
 DeadlockDetectionConfigurationBuilder deadlockDetection()
           
 L1ConfigurationBuilder disable()
           
 L1ConfigurationBuilder disableOnRehash()
          Entries removed due to a rehash will be removed altogether rather than bring moved to L1.
 L1ConfigurationBuilder enable()
           
 L1ConfigurationBuilder enabled(boolean enabled)
           
 L1ConfigurationBuilder enableOnRehash()
          Entries removed due to a rehash will be moved to L1 rather than being removed altogether.
 EvictionConfigurationBuilder eviction()
           
 ExpirationConfigurationBuilder expiration()
           
protected  ConfigurationBuilder getBuilder()
           
protected  ClusteringConfigurationBuilder getClusteringBuilder()
           
 HashConfigurationBuilder hash()
          Allows fine-tuning of rehashing characteristics.
 IndexingConfigurationBuilder indexing()
           
 L1ConfigurationBuilder invalidationThreshold(int invalidationThreshold)
           Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.
 InvocationBatchingConfigurationBuilder invocationBatching()
           
 JMXStatisticsConfigurationBuilder jmxStatistics()
           
 L1ConfigurationBuilder l1()
          Configures the L1 cache behavior in 'distributed' caches instances.
 L1ConfigurationBuilder lifespan(long lifespan)
          Maximum lifespan of an entry placed in the L1 cache.
 LoadersConfigurationBuilder loaders()
           
 LockingConfigurationBuilder locking()
           
 L1ConfigurationBuilder onRehash(boolean enabled)
          Entries removed due to a rehash will be moved to L1 rather than being removed altogether.
 L1ConfigurationBuilder read(L1Configuration template)
           
 StateTransferConfigurationBuilder stateTransfer()
          Configures how state is transferred when a new cache joins the cluster.
 StoreAsBinaryConfigurationBuilder storeAsBinary()
           
 SyncConfigurationBuilder sync()
          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.
 String toString()
           
 TransactionConfigurationBuilder transaction()
           
 UnsafeConfigurationBuilder unsafe()
           
 VersioningConfigurationBuilder versioning()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, loaders, locking, storeAsBinary, transaction, unsafe, versioning
 

Method Detail

invalidationThreshold

public L1ConfigurationBuilder invalidationThreshold(int invalidationThreshold)

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

lifespan

public L1ConfigurationBuilder lifespan(long lifespan)
Maximum lifespan of an entry placed in the L1 cache.


cleanupTaskFrequency

public L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis)
How often the L1 requestors map is cleaned up of stale items


enableOnRehash

public L1ConfigurationBuilder enableOnRehash()
Entries removed due to a rehash will be moved to L1 rather than being removed altogether.


onRehash

public L1ConfigurationBuilder onRehash(boolean enabled)
Entries removed due to a rehash will be moved to L1 rather than being removed altogether.


disableOnRehash

public L1ConfigurationBuilder disableOnRehash()
Entries removed due to a rehash will be removed altogether rather than bring moved to L1.


enable

public L1ConfigurationBuilder enable()

disable

public L1ConfigurationBuilder disable()

enabled

public L1ConfigurationBuilder enabled(boolean enabled)

read

public L1ConfigurationBuilder read(L1Configuration template)

toString

public String toString()
Overrides:
toString in class Object

async

public AsyncConfigurationBuilder async()
Description copied from interface: ClusteringConfigurationChildBuilder
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. Asynchronous configuration is mutually exclusive with synchronous configuration.

Specified by:
async in interface ClusteringConfigurationChildBuilder

hash

public HashConfigurationBuilder hash()
Description copied from interface: ClusteringConfigurationChildBuilder
Allows fine-tuning of rehashing characteristics. Must only used with 'distributed' cache mode.

Specified by:
hash in interface ClusteringConfigurationChildBuilder

l1

public L1ConfigurationBuilder l1()
Description copied from interface: ClusteringConfigurationChildBuilder
Configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes, this element is ignored.

Specified by:
l1 in interface ClusteringConfigurationChildBuilder

stateTransfer

public StateTransferConfigurationBuilder stateTransfer()
Description copied from interface: ClusteringConfigurationChildBuilder
Configures how state is transferred when a new cache joins the cluster. Used with distribution and replication clustered modes.

Specified by:
stateTransfer in interface ClusteringConfigurationChildBuilder

sync

public SyncConfigurationBuilder sync()
Description copied from interface: ClusteringConfigurationChildBuilder
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. SyncConfig is mutually exclusive with the AsyncConfig.

Specified by:
sync in interface ClusteringConfigurationChildBuilder

getClusteringBuilder

protected ClusteringConfigurationBuilder getClusteringBuilder()

clustering

public ClusteringConfigurationBuilder clustering()
Specified by:
clustering in interface ConfigurationChildBuilder

customInterceptors

public CustomInterceptorsConfigurationBuilder customInterceptors()
Specified by:
customInterceptors in interface ConfigurationChildBuilder

dataContainer

public DataContainerConfigurationBuilder dataContainer()
Specified by:
dataContainer in interface ConfigurationChildBuilder

deadlockDetection

public DeadlockDetectionConfigurationBuilder deadlockDetection()
Specified by:
deadlockDetection in interface ConfigurationChildBuilder

eviction

public EvictionConfigurationBuilder eviction()
Specified by:
eviction in interface ConfigurationChildBuilder

expiration

public ExpirationConfigurationBuilder expiration()
Specified by:
expiration in interface ConfigurationChildBuilder

indexing

public IndexingConfigurationBuilder indexing()
Specified by:
indexing in interface ConfigurationChildBuilder

invocationBatching

public InvocationBatchingConfigurationBuilder invocationBatching()
Specified by:
invocationBatching in interface ConfigurationChildBuilder

jmxStatistics

public JMXStatisticsConfigurationBuilder jmxStatistics()
Specified by:
jmxStatistics in interface ConfigurationChildBuilder

loaders

public LoadersConfigurationBuilder loaders()
Specified by:
loaders in interface ConfigurationChildBuilder

locking

public LockingConfigurationBuilder locking()
Specified by:
locking in interface ConfigurationChildBuilder

storeAsBinary

public StoreAsBinaryConfigurationBuilder storeAsBinary()
Specified by:
storeAsBinary in interface ConfigurationChildBuilder

transaction

public TransactionConfigurationBuilder transaction()
Specified by:
transaction in interface ConfigurationChildBuilder

versioning

public VersioningConfigurationBuilder versioning()
Specified by:
versioning in interface ConfigurationChildBuilder

unsafe

public UnsafeConfigurationBuilder unsafe()
Specified by:
unsafe in interface ConfigurationChildBuilder

getBuilder

protected ConfigurationBuilder getBuilder()

build

public Configuration build()
Specified by:
build in interface ConfigurationChildBuilder

-->

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