|
Oracle Communications Services Gatekeeper Java API Reference 5.0 E21717-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Map based store interface used to put, get, remove Serializable objects. The store does not allow null values as keys or values.
Note that the Store instance retrieved should not be considered thread safe, and that users should retrieve different Store instances for each transaction.
The Store instance should be released by the user at the end of the transaction.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
Map.Entry |
Method Summary | |
void |
addListener(StoreListener listener) The addListener/StoreListener is used for automatic expiry events only. |
StoreQuery |
getQuery(String name) Get a new named query. |
boolean |
lock(Serializable key, long timeout) Attempt to take a cluster wide lock. |
void |
release() Release this store instance. |
void |
removeListener(StoreListener listener) Remove previously added store listener for store. |
boolean |
unlock(Serializable key) Unlock a previously obtained lock. |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Method Detail |
public void addListener(StoreListener listener) throws StorageException
listener
- The store listener.StorageException
- If the listener could not be added.public StoreQuery getQuery(String name)
name
- The query name.public boolean lock(Serializable key, long timeout)
key
- The identifier of the lock.timeout
- The maximum time in milliseconds to wait for lock.public void release()
public void removeListener(StoreListener listener)
listener
- The store listener.public boolean unlock(Serializable key)
key
- The identifier of the lock.
|
Oracle Communications Services Gatekeeper Java API Reference 5.0 E21717-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |