Package church.i18n.processing.storage
Interface StorageMessageProvider
- All Known Subinterfaces:
MessageStorage,StorageSupplier
- All Known Implementing Classes:
ThreadIndependentStorage,ThreadLocalStorage
public interface StorageMessageProvider
Retrieve messages from the storage.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearStorage(@NotNull String processingId) Clear message from the storage associated withprocessingId.@NotNull List<ProcessingMessage> Retrieve all messages from the message storage without clearing them.@NotNull List<ProcessingMessage> getAndClear(@NotNull String processingId) Retrieve all messages from storage and clear messages associated with theprocessingId.
-
Method Details
-
clearStorage
Clear message from the storage associated withprocessingId.- Parameters:
processingId- Identifier of messages associated with.
-
get
Retrieve all messages from the message storage without clearing them.- Parameters:
processingId- Identifier of messages associated with.- Returns:
- List of messages associated with the
processingId.
-
getAndClear
Retrieve all messages from storage and clear messages associated with theprocessingId.- Parameters:
processingId- Identifier of messages associated with.- Returns:
- List of messages associated with
processingId.
-