public interface EventStore
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(java.lang.String collection,
Event event)
Acknowledge a single event has been sent.
|
void |
add(java.lang.String collection,
Event event)
Add a single event to the store.
|
java.lang.Iterable<Event> |
read(java.lang.String collection)
Read all events for a specific collection.
|
java.util.Map<java.lang.String,java.lang.Iterable<Event>> |
readAll()
Read all events in the store.
|
void add(java.lang.String collection,
Event event)
throws java.io.IOException
collection - Collection for which to add the event.event - Event to add.java.io.IOException - If there is a problem adding the event to the store.java.lang.Iterable<Event> read(java.lang.String collection) throws java.io.IOException
collection - Collection for which to retrieve the events.Iterable of events under that collection.java.io.IOException - If there is a problem reading the events from the store.java.util.Map<java.lang.String,java.lang.Iterable<Event>> readAll() throws java.io.IOException
Map of collection names to a list of events in the store.java.io.IOException - If there is a problem reading the events from the store.void acknowledge(java.lang.String collection,
Event event)
throws java.io.IOException
collection - The collection in which the event belongs.event - The event to acknowledge.java.io.IOException - If there is a problem acknowledging the event.