|
||||||||||
| 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. |
protected void |
initialize(BackingStoreConfiguration<K,V> conf)
|
V |
load(K key,
java.lang.Long version)
|
V |
load(java.lang.Object 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(long idleForMillis)
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 |
void |
updateTimestamp(K key,
long time)
|
java.lang.String |
updateTimestamp(K key,
java.lang.Long version,
java.lang.Long accessTime,
java.lang.Long maxIdleTime)
Recomended way is to just do a save(k, v) |
| Methods inherited from class org.glassfish.ha.store.api.BackingStore |
|---|
close, createObjectInputStream, createObjectOutputStream, findByCriteria, getBackingStoreConfiguration, getBackingStoreFactory, removeByCriteria, removeExpired, synchronizeKeys |
| 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>BackingStoreException
public V load(java.lang.Object 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 V load(K key,
java.lang.Long version)
throws BackingStoreException
BackingStoreException
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 void updateTimestamp(K key,
long time)
throws BackingStoreException
updateTimestamp in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>BackingStoreException
public java.lang.String updateTimestamp(K key,
java.lang.Long version,
java.lang.Long accessTime,
java.lang.Long maxIdleTime)
throws BackingStoreException
BackingStore
updateTimestamp in class BackingStore<K extends java.io.Serializable,V extends java.io.Serializable>BackingStoreException
public int removeExpired(long idleForMillis)
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 | |||||||||