Package org.mule.soap.api.rm
Interface ReliableMessagingStore<T extends Serializable>
- Type Parameters:
T- the generic type of the objects to be stored
public interface ReliableMessagingStore<T extends Serializable>
Store to persists reliable messaging sequences and messages.
- Since:
- 1.6
-
Method Summary
Modifier and TypeMethodDescriptionRemove the object with the givenkey* Retrieve the object stored under the givenkeyvoidStore the given Object.voidUpdates the given Object on the given key
-
Method Details
-
store
Store the given Object.- Parameters:
key- the identifier forvaluevalue- the Object to store withkey- Throws:
ReliableMessagingStoreException- if the given key cannot be stored or isnullor 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.Exception
-
update
Updates the given Object on the given key- Parameters:
key- the identifier forvaluevalue- the Object to store withkey- Throws:
ReliableMessagingStoreException- 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.Exception
-
retrieve
* Retrieve the object stored under the givenkey- Parameters:
key- the identifier of the object to retrieve.- Returns:
- the object associated with the given key. If no object for the given key was found this returns
null. - Throws:
ReliableMessagingStoreException- if the given key isnullor if the store is not available or any other implementation-specific error occurred.Exception
-
remove
Remove the object with the givenkey- Parameters:
key- the identifier of the object to remove.- Returns:
- the object that was previously stored for the given key
- Throws:
ReliableMessagingStoreException- if the given key isnullor if no value for the given key was previously stored or if the store is not available or any other implementation-specific error occurred.Exception
-
retrieveAll
- Returns:
- All the key-value pairs that this object store currently holds.
- Throws:
ReliableMessagingStoreException- if an exception occurred while collecting the values.Exception
-