T - the generic type of the objects to be storedpublic interface ReliableMessagingStore<T extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
T |
remove(String key)
Remove the object with the given
key |
T |
retrieve(String key)
* Retrieve the object stored under the given
key |
Map<String,T> |
retrieveAll() |
void |
store(String key,
T value)
Store the given Object.
|
void |
update(String key,
T value)
Updates the given Object on the given key
|
void store(String key, T value) throws Exception
key - the identifier for valuevalue - the Object to store with keyReliableMessagingStoreException - if the given key cannot be stored or is null or if an attempt
is made to store an object for a key that already has an object associated
or if the store is not available or any other implementation-specific error
occurred.Exceptionvoid update(String key, T value) throws Exception
key - the identifier for valuevalue - the Object to store with keyReliableMessagingStoreException - if the given Object cannot be updated or if the store is not available if
no value for the given key was previously stored or any other
implementation-specific error occurred.ExceptionT retrieve(String key) throws Exception
keykey - the identifier of the object to retrieve.null.ReliableMessagingStoreException - if the given key is null or if the store is not available or
any other implementation-specific error occurred.ExceptionT remove(String key) throws Exception
keykey - the identifier of the object to remove.ReliableMessagingStoreException - if the given key is null or if no value for the given key was
previously stored or if the store is not available or any other
implementation-specific error occurred.ExceptionCopyright © 2020. All rights reserved.