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 Type
    Method
    Description
    void
    clearStorage(@NotNull String processingId)
    Clear message from the storage associated with processingId.
    get(@NotNull String processingId)
    Retrieve all messages from the message storage without clearing them.
    getAndClear(@NotNull String processingId)
    Retrieve all messages from storage and clear messages associated with the processingId.
  • Method Details

    • clearStorage

      void clearStorage(@NotNull @NotNull String processingId)
      Clear message from the storage associated with processingId.
      Parameters:
      processingId - Identifier of messages associated with.
    • get

      @NotNull @NotNull List<ProcessingMessage> get(@NotNull @NotNull String processingId)
      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

      @NotNull @NotNull List<ProcessingMessage> getAndClear(@NotNull @NotNull String processingId)
      Retrieve all messages from storage and clear messages associated with the processingId.
      Parameters:
      processingId - Identifier of messages associated with.
      Returns:
      List of messages associated with processingId.