|
||||||||||
| 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 Serializable,V extends 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,
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 |
String |
save(K key,
V value,
boolean isNew)
Save the value whose key is id. |
int |
size()
Get the current size of the store |
String |
updateTimestamp(K key,
String version,
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 Serializable,V extends Serializable>BackingStoreExceptionpublic BackingStoreFactory getBackingStoreFactory()
getBackingStoreFactory in class BackingStore<K extends Serializable,V extends Serializable>
public V load(K key,
String version)
throws BackingStoreException
BackingStoresave() method.
load in class BackingStore<K extends Serializable,V extends Serializable>key - the key whose value must be returned
BackingStoreException - if the underlying store implementation encounters any
exception
public String save(K key,
V value,
boolean isNew)
throws BackingStoreException
BackingStore
save in class BackingStore<K extends Serializable,V extends 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 Serializable,V extends Serializable>key - the id of the Metadata
BackingStoreException - if the underlying store implementation encounters any
exception
public String updateTimestamp(K key,
String version,
Long accessTime)
throws BackingStoreException
BackingStore
updateTimestamp in class BackingStore<K extends Serializable,V extends Serializable>BackingStoreException
public int removeExpired()
throws BackingStoreException
BackingStore
removeExpired in class BackingStore<K extends Serializable,V extends Serializable>BackingStoreException
public int size()
throws BackingStoreException
BackingStore
size in class BackingStore<K extends Serializable,V extends Serializable>BackingStoreException - if the underlying store implementation encounters any
exception
public void destroy()
throws BackingStoreException
BackingStore
destroy in class BackingStore<K extends Serializable,V extends Serializable>BackingStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||