Package org.shoal.ha.cache.impl.store
Class ReplicaStore<K,V>
- java.lang.Object
-
- org.shoal.ha.cache.impl.store.ReplicaStore<K,V>
-
public class ReplicaStore<K,V> extends java.lang.Object- Author:
- Mahesh Kannan
-
-
Constructor Summary
Constructors Constructor Description ReplicaStore(DataStoreContext<K,V> ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataStoreEntry<K,V>getEntry(K k)DataStoreEntry<K,V>getOrCreateEntry(K k)VgetV(K k, java.lang.ClassLoader cl)java.util.Collection<K>keys()voidremove(K k)intremoveExpired()voidsetIdleEntryDetector(IdleEntryDetector<K,V> idleEntryDetector)intsize()java.util.Collection<DataStoreEntry<K,V>>values()
-
-
-
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()
-
-