Interface JvmPubSubStorage

All Known Implementing Classes:
StaticMapJvmPubSubStorage

public interface JvmPubSubStorage
Storage abstraction for JVM pub-sub messages. Applications can override the default implementation by providing their own bean.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Clear storage (primarily useful for tests and in-memory implementations).
    Retrieve stored messages for a topic.
    void
    Persist an incoming or outgoing pub-sub message.
  • Method Details

    • save

      void save(JvmPubSubMessage message)
      Persist an incoming or outgoing pub-sub message.
    • findByTopic

      default List<JvmPubSubMessage> findByTopic(String topic)
      Retrieve stored messages for a topic.
    • clear

      default void clear()
      Clear storage (primarily useful for tests and in-memory implementations).