Liferay 6.1.10-ee-ga1

com.liferay.portal.kernel.concurrent
Class ConcurrentLRUCache<K,V>

java.lang.Object
  extended by com.liferay.portal.kernel.concurrent.ConcurrentLRUCache<K,V>

public class ConcurrentLRUCache<K,V>
extends Object


Constructor Summary
ConcurrentLRUCache(int maxSize)
           
ConcurrentLRUCache(int maxSize, float loadFactor)
           
 
Method Summary
 void clear()
           
 long evictCount()
           
 int expectedSize()
           
 V get(K key)
           
 long hitCount()
           
 int maxSize()
           
 long missCount()
           
 void put(K key, V value)
           
 long putCount()
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcurrentLRUCache

public ConcurrentLRUCache(int maxSize)

ConcurrentLRUCache

public ConcurrentLRUCache(int maxSize,
                          float loadFactor)
Method Detail

clear

public void clear()

evictCount

public long evictCount()

expectedSize

public int expectedSize()

get

public V get(K key)

hitCount

public long hitCount()

maxSize

public int maxSize()

missCount

public long missCount()

put

public void put(K key,
                V value)

putCount

public long putCount()

size

public int size()

toString

public String toString()
Overrides:
toString in class Object

Liferay 6.1.10-ee-ga1