|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.ha.store.api.BackingStore<K,V>
org.glassfish.ha.store.impl.NoOpBackingStore<K,V>
public class NoOpBackingStore<K extends java.io.Serializable,V extends java.io.Serializable>
| Method Summary | |
|---|---|
void |
destroy()
Called when the store is no longer needed. |
BackingStoreFactory |
getBackingStoreFactory()
|
protected void |
initialize(BackingStoreConfiguration<K,V> conf)
|
V |
load(K key,
java.lang.String version)
Load and return the data for the given id. |
void |
remove(K key)
Remove the association for the id. |
int |
removeExpired()
Remove expired entries |
java.lang.String |
save(K key,
V value,
boolean isNew)
Save the value whose key is id. |
int |
size()
Get the current size of the store |
java.lang.String |
updateTimestamp(K key,
java.lang.String version,
java.lang.Long accessTime)
Recomended way is to just do a save(k, v) |
| Methods inherited from class org.glassfish.ha.store.api.BackingStore |
|---|
close, createObjectInputStream, createObjectOutputStream, getBackingStoreConfiguration, removeExpired, updateTimestamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected void initialize(BackingStoreConfiguration<K,V> conf)
throws BackingStoreException
initialize in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>BackingStoreExceptionpublic BackingStoreFactory getBackingStoreFactory()
getBackingStoreFactory in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>
public V load(K key,
java.lang.String version)
throws BackingStoreException
BackingStoresave() method.
load in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>key - the key whose value must be returned
BackingStoreException - if the underlying store implementation encounters any
exception
public java.lang.String save(K key,
V value,
boolean isNew)
throws BackingStoreException
BackingStore
save in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>key - the idvalue - The Metadata to be stored
BackingStoreException - if the underlying store implementation encounters any
exception
public void remove(K key)
throws BackingStoreException
BackingStoreload(id) must return
null. In addition, any association between id and
container extra params must also be removed.
remove in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>key - the id of the Metadata
BackingStoreException - if the underlying store implementation encounters any
exception
public java.lang.String updateTimestamp(K key,
java.lang.String version,
java.lang.Long accessTime)
throws BackingStoreException
BackingStore
updateTimestamp in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>BackingStoreException
public int removeExpired()
throws BackingStoreException
BackingStore
removeExpired in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>BackingStoreException
public int size()
throws BackingStoreException
BackingStore
size in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>BackingStoreException - if the underlying store implementation encounters any
exception
public void destroy()
throws BackingStoreException
BackingStore
destroy in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>BackingStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||