Interface IExternalFlowStore
public interface IExternalFlowStore
Abstraction for the external flow store.
- Since:
- 12.1
- Author:
- Voicu Moldovan
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the specifiedkey.Returns the value specified fot the givenkey.booleanChecks if the given key exists in the external flow store.voidset(String key, ObjectModelStorage value) Saves aObjectModelStorageobject in the external flow store.
-
Method Details
-
delete
Removes the specifiedkey.If the given key does not exist in the store, no exception is thrown.
- Parameters:
key- The key to delete, cannot benullorempty- Throws:
ExternalFlowStoreException- when there is an error communicating with the external flow storeIllegalArgumentException- ifkeyisnullorempty
-
get
Returns the value specified fot the givenkey.- Parameters:
key- The key from where to retrieve the data, cannot benullorempty- Returns:
- the saved value or
nullif nothing was found - Throws:
ExternalFlowStoreException- when there is an error communicating with the external flow storeIllegalArgumentException- ifkeyisnullorempty
-
hasKey
Checks if the given key exists in the external flow store.- Parameters:
key- The key to check for existence, cannot benullorempty- Returns:
trueif the key exists,falseotherwise- Throws:
ExternalFlowStoreException- when there is an error communicating with the external flow storeIllegalArgumentException- if parameterkeyisnullorempty
-
set
Saves aObjectModelStorageobject in the external flow store.If a value already exists for the given key, it will be overwritten.
- Parameters:
key- The key where the value will be saved under, cannot benulloremptyvalue-ObjectModelStorageobject to persist in the external flow store, cannot benull- Throws:
ExternalFlowStoreException- when there is an error communicating with the external flow storeIllegalArgumentException- if parameterkeyisnullorempty
-