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.util.Collection<K> keys()
           
 void remove(K k)
           
 int removeExpired(long idleforMillis)
           
 void removeExpired(org.glassfish.ha.store.api.StoreEntryProcessor processor)
           
 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

getEntry

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

getOrCreateEntry

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

getV

public V getV(K k)
       throws DataStoreException
Throws:
DataStoreException

remove

public void remove(K k)

size

public int size()

removeExpired

public int removeExpired(long idleforMillis)

removeExpired

public void removeExpired(org.glassfish.ha.store.api.StoreEntryProcessor processor)
                   throws DataStoreException
Throws:
DataStoreException

keys

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

values

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


Copyright © 2010. All Rights Reserved.