Package org.shoal.adapter.store
Class InMemoryBackingStore<K extends java.io.Serializable,V extends java.io.Serializable>
- java.lang.Object
-
- org.glassfish.ha.store.api.BackingStore<K,V>
-
- org.shoal.adapter.store.InMemoryBackingStore<K,V>
-
public class InMemoryBackingStore<K extends java.io.Serializable,V extends java.io.Serializable> extends org.glassfish.ha.store.api.BackingStore<K,V>- Author:
- Mahesh Kannan
-
-
Constructor Summary
Constructors Constructor Description InMemoryBackingStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()org.glassfish.ha.store.api.BackingStoreFactorygetBackingStoreFactory()protected voidinitialize(org.glassfish.ha.store.api.BackingStoreConfiguration<K,V> conf)Vload(K key, java.lang.String version)voidremove(K key)intremoveExpired(long idleTime)java.lang.Stringsave(K key, V value, boolean isNew)intsize()voidupdateTimestamp(K key, long time)
-
-
-
Method Detail
-
initialize
protected void initialize(org.glassfish.ha.store.api.BackingStoreConfiguration<K,V> conf) throws org.glassfish.ha.store.api.BackingStoreException
-
load
public V load(K key, java.lang.String version) throws org.glassfish.ha.store.api.BackingStoreException
-
save
public java.lang.String save(K key, V value, boolean isNew) throws org.glassfish.ha.store.api.BackingStoreException
-
remove
public void remove(K key) throws org.glassfish.ha.store.api.BackingStoreException
-
removeExpired
public int removeExpired(long idleTime) throws org.glassfish.ha.store.api.BackingStoreException
-
size
public int size() throws org.glassfish.ha.store.api.BackingStoreException
-
destroy
public void destroy() throws org.glassfish.ha.store.api.BackingStoreException
-
updateTimestamp
public void updateTimestamp(K key, long time) throws org.glassfish.ha.store.api.BackingStoreException
-
-