Class MemoryEventStore

java.lang.Object
ch.rasc.wamp2spring.pubsub.MemoryEventStore
All Implemented Interfaces:
EventStore

public class MemoryEventStore extends Object implements EventStore
Memory only implementation of the EventStore interface. Used for storing retention messages. Only publishMessages coming from the internal WampPublisher are stored in the retention store.
  • Field Details

  • Constructor Details

    • MemoryEventStore

      public MemoryEventStore()
  • Method Details

    • retain

      public void retain(PublishMessage publishMessage)
      Description copied from interface: EventStore
      Stores an event in the store
      Specified by:
      retain in interface EventStore
      Parameters:
      publishMessage - the event to store
    • getRetained

      public List<PublishMessage> getRetained(DestinationMatch query)
      Description copied from interface: EventStore
      Returns all stored events that match the query.
      Specified by:
      getRetained in interface EventStore
      Parameters:
      query - the query
      Returns:
      a collection of events that match the query