com.twitter.common.util.caching
Class LRUCache.Builder<K,V>

java.lang.Object
  extended by com.twitter.common.util.caching.LRUCache.Builder<K,V>
Enclosing class:
LRUCache<K,V>

public static class LRUCache.Builder<K,V>
extends Object


Constructor Summary
LRUCache.Builder()
           
 
Method Summary
 LRUCache<K,V> build()
           
 LRUCache.Builder<K,V> evictionListener(Closure<Pair<K,V>> evictionListener)
           
 LRUCache.Builder<K,V> loadFactor(float loadFactor)
           
 LRUCache.Builder<K,V> makeSynchronized(boolean makeSynchronized)
           
 LRUCache.Builder<K,V> maxSize(int maxSize)
           
 LRUCache.Builder<K,V> name(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LRUCache.Builder

public LRUCache.Builder()
Method Detail

name

public LRUCache.Builder<K,V> name(String name)

maxSize

public LRUCache.Builder<K,V> maxSize(int maxSize)

loadFactor

public LRUCache.Builder<K,V> loadFactor(float loadFactor)

makeSynchronized

public LRUCache.Builder<K,V> makeSynchronized(boolean makeSynchronized)

evictionListener

public LRUCache.Builder<K,V> evictionListener(Closure<Pair<K,V>> evictionListener)

build

public LRUCache<K,V> build()