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(List<Long> directoryIds) |
Events |
getNewEvents(String eventToken,
Application application) |
Events |
getNewEvents(String eventToken,
List<Long> directoryIds) |
void |
handleApplicationEvent(Object event) |
void |
storeOperationEvent(OperationEvent event) |
public EventStoreGeneric(long maxStoredEvents)
maxStoredEvents - maximum amount of events to keep in the memorypublic String getCurrentEventToken(List<Long> directoryIds)
getCurrentEventToken in interface EventStorepublic Events getNewEvents(String eventToken, List<Long> directoryIds) throws EventTokenExpiredException
getNewEvents in interface EventStoreEventTokenExpiredExceptionpublic Events getNewEvents(String eventToken, Application application) throws EventTokenExpiredException
getNewEvents in interface EventStoreEventTokenExpiredExceptionpublic void storeOperationEvent(OperationEvent event)
storeOperationEvent in interface EventStorepublic void handleApplicationEvent(Object event)
handleApplicationEvent in interface EventStoreCopyright © 2023 Atlassian. All rights reserved.