org.terracotta.modules.ehcache.store
Class LocalBufferedMap<K,V>

java.lang.Object
  extended by org.terracotta.modules.ehcache.store.LocalBufferedMap<K,V>

public class LocalBufferedMap<K,V>
extends Object

Author:
Abhishek Sanoujam

Field Summary
protected static int DEFAULT_LOCAL_BUFFER_PUTS_BATCH_SIZE
           
protected static int DEFAULT_LOCAL_BUFFER_PUTS_BATCH_TIME_MILLIS
           
protected static int DEFAULT_LOCAL_BUFFER_PUTS_THROTTLE_SIZE
           
protected static Object REMOVE_SENTINEL_VALUE
           
 
Constructor Summary
LocalBufferedMap(ClusteredStoreBackend clusteredStoreBackend, CacheCoherence incoherentNodesSet, ValueModeHandler valueModeHandler)
           
 
Method Summary
 void clear()
           
 boolean containsKey(K key)
           
 void dispose()
           
 void flushAndStopBuffering()
           
 V get(K key)
           
 Object[] getKeyArray()
           
 int getSize()
           
 void put(K key, V value)
           
 V remove(K key)
           
 void startBuffering()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOCAL_BUFFER_PUTS_BATCH_SIZE

protected static final int DEFAULT_LOCAL_BUFFER_PUTS_BATCH_SIZE
See Also:
Constant Field Values

DEFAULT_LOCAL_BUFFER_PUTS_BATCH_TIME_MILLIS

protected static final int DEFAULT_LOCAL_BUFFER_PUTS_BATCH_TIME_MILLIS
See Also:
Constant Field Values

DEFAULT_LOCAL_BUFFER_PUTS_THROTTLE_SIZE

protected static final int DEFAULT_LOCAL_BUFFER_PUTS_THROTTLE_SIZE
See Also:
Constant Field Values

REMOVE_SENTINEL_VALUE

protected static final Object REMOVE_SENTINEL_VALUE
Constructor Detail

LocalBufferedMap

public LocalBufferedMap(ClusteredStoreBackend clusteredStoreBackend,
                        CacheCoherence incoherentNodesSet,
                        ValueModeHandler valueModeHandler)
Method Detail

get

public V get(K key)

remove

public V remove(K key)

containsKey

public boolean containsKey(K key)

getSize

public int getSize()

clear

public void clear()

getKeyArray

public Object[] getKeyArray()

put

public void put(K key,
                V value)

dispose

public void dispose()

startBuffering

public void startBuffering()

flushAndStopBuffering

public void flushAndStopBuffering()


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.