public final class EventStoreGeneric extends Object implements EventStore
EventStore implementation that uses main memory as a
backing store. The amount of events stored is fixed, and after reaching the
limit, the oldest events will start to get dropped.| Constructor and Description |
|---|
EventStoreGeneric(long maxStoredEvents)
Creates a new EventStoreGeneric instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentEventToken() |
Events |
getNewEvents(String eventToken) |
void |
invalidateEvents() |
void |
invalidateEvents(Class unsupportedEventSource) |
void |
invalidateEvents(String reason) |
void |
storeEvent(OperationEvent event) |
public EventStoreGeneric(long maxStoredEvents)
maxStoredEvents - maximum amount of events to keep in the memorypublic String getCurrentEventToken()
getCurrentEventToken in interface EventStorepublic Events getNewEvents(String eventToken) throws EventTokenExpiredException
getNewEvents in interface EventStoreEventTokenExpiredExceptionpublic void storeEvent(OperationEvent event)
storeEvent in interface EventStorepublic void invalidateEvents()
invalidateEvents in interface EventStorepublic void invalidateEvents(Class unsupportedEventSource)
invalidateEvents in interface EventStorepublic void invalidateEvents(String reason)
invalidateEvents in interface EventStoreCopyright © 2018 Atlassian. All rights reserved.