Package church.i18n.processing.storage
Interface MessageStorage
- All Superinterfaces:
MessageStorageAppender,StorageMessageProvider
- All Known Implementing Classes:
ThreadIndependentStorage,ThreadLocalStorage
Simplified message storage where implementing class takes care of providing a correct
processingId.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessages(@NotNull ProcessingMessage... messages) Add messages into message storage.voidaddMessages(@NotNull List<ProcessingMessage> messages) Add messages into the thread independent storage.voidClear message from the storage.@NotNull List<ProcessingMessage> get()Retrieve all messages from the message storage without clearing them.@NotNull List<ProcessingMessage> Retrieve all messages from storage and clear messages associated with theprocessingId.Methods inherited from interface church.i18n.processing.storage.MessageStorageAppender
addMessages, addMessagesMethods inherited from interface church.i18n.processing.storage.StorageMessageProvider
clearStorage, get, getAndClear
-
Method Details
-
addMessages
Add messages into message storage.- Parameters:
messages- Messages to append.
-
addMessages
Add messages into the thread independent storage.- Parameters:
messages- Messages to append.
-
clearStorage
void clearStorage()Clear message from the storage. -
get
Retrieve all messages from the message storage without clearing them.- Returns:
- List of messages in a storage.
-
getAndClear
Retrieve all messages from storage and clear messages associated with theprocessingId.- Returns:
- List of messages in a storage.
-