org.infinispan.configuration.cache
Class L1Configuration

java.lang.Object
  extended by org.infinispan.configuration.cache.L1Configuration

public class L1Configuration
extends Object

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


Method Summary
 long cleanupTaskFrequency()
          Determines how often a cleanup thread runs to clean up an internal log of requestors for a specific key
 boolean enabled()
           
 boolean equals(Object o)
           
 int hashCode()
           
 int invalidationThreshold()
           Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.
 long lifespan()
          Maximum lifespan of an entry placed in the L1 cache.
 boolean onRehash()
          If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

enabled

public boolean enabled()

invalidationThreshold

public 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.


cleanupTaskFrequency

public long cleanupTaskFrequency()
Determines how often a cleanup thread runs to clean up an internal log of requestors for a specific key


lifespan

public long lifespan()
Maximum lifespan of an entry placed in the L1 cache. Default 10 minutes.


onRehash

public boolean onRehash()
If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether. Enabled by default.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

-->

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