org.shoal.ha.cache.impl.store
Class ReplicaStore<K,V>

java.lang.Object
  extended by org.shoal.ha.cache.impl.store.ReplicaStore<K,V>

public class ReplicaStore<K,V>
extends java.lang.Object

Author:
Mahesh Kannan

Constructor Summary
ReplicaStore(DataStoreContext<K,V> ctx)
           
 
Method Summary
 DataStoreEntry<K,V> getEntry(K k)
           
 DataStoreEntry<K,V> getOrCreateEntry(K k)
           
 V getV(K k, java.lang.ClassLoader cl)
           
 java.util.Collection<K> keys()
           
 void remove(K k)
           
 int removeExpired()
           
 void setIdleEntryDetector(IdleEntryDetector<K,V> idleEntryDetector)
           
 int size()
           
 java.util.Collection<DataStoreEntry<K,V>> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicaStore

public ReplicaStore(DataStoreContext<K,V> ctx)
Method Detail

setIdleEntryDetector

public void setIdleEntryDetector(IdleEntryDetector<K,V> idleEntryDetector)

getEntry

public DataStoreEntry<K,V> getEntry(K k)

getOrCreateEntry

public DataStoreEntry<K,V> getOrCreateEntry(K k)

getV

public V getV(K k,
              java.lang.ClassLoader cl)
       throws DataStoreException
Throws:
DataStoreException

remove

public void remove(K k)

size

public int size()

removeExpired

public int removeExpired()

keys

public java.util.Collection<K> keys()

values

public java.util.Collection<DataStoreEntry<K,V>> values()


Copyright © 2012. All Rights Reserved.