Package ch.rasc.wamp2spring.pubsub
Class MemoryEventStore
java.lang.Object
ch.rasc.wamp2spring.pubsub.MemoryEventStore
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRetained(DestinationMatch query) Returns all stored events that match the query.voidretain(PublishMessage publishMessage) Stores an event in the store
-
Field Details
-
eventRetention
-
-
Constructor Details
-
MemoryEventStore
public MemoryEventStore()
-
-
Method Details
-
retain
Description copied from interface:EventStoreStores an event in the store- Specified by:
retainin interfaceEventStore- Parameters:
publishMessage- the event to store
-
getRetained
Description copied from interface:EventStoreReturns all stored events that match the query.- Specified by:
getRetainedin interfaceEventStore- Parameters:
query- the query- Returns:
- a collection of events that match the query
-