|
Oracle Communications Services Gatekeeper Java API Reference 7.0.0.1 E96578-01 |
||||||||||
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 |
java.util.Map.Entry |
Method Summary | |
abstract void |
addListener(StoreListener listener)
The addListener/StoreListener is used for automatic expiry events only. |
StoreOperation |
getOperation(java.lang.String name)
Get a new named operation. |
abstract StoreQuery |
getQuery(java.lang.String name)
Get a new named query. |
abstract boolean |
lock(java.io.Serializable key,
long timeout)
Attempt to take a cluster wide lock. |
void |
putNr(java.io.Serializable key,
java.io.Serializable value)
Associates the specified value with the specified key without previous value return. |
abstract void |
release()
Release this store instance. |
abstract void |
removeListener(StoreListener listener)
Remove previously added store listener for store. |
abstract boolean |
unlock(java.io.Serializable key)
Unlock a previously obtained lock. |
Methods inherited from interface java.util.Map |
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values |
Method Detail |
public void addListener(StoreListener listener) throws StorageException
listener
- The store listener.
StorageException
- If the listener could not be added.public StoreOperation getOperation(java.lang.String name)
name
- The operation name.
public StoreQuery getQuery(java.lang.String name)
name
- The query name.
public boolean lock(java.io.Serializable key, long timeout)
key
- The identifier of the lock.timeout
- The maximum time in milliseconds to wait for lock.
public void putNr(java.io.Serializable key, java.io.Serializable value)
key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified keypublic void release()
public void removeListener(StoreListener listener)
listener
- The store listener.public boolean unlock(java.io.Serializable key)
key
- The identifier of the lock.
|
Oracle Communications Services Gatekeeper Java API Reference 7.0.0.1 E96578-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |