Package com.atlassian.crowd.event
Class EventStoreGeneric
java.lang.Object
com.atlassian.crowd.event.EventStoreGeneric
- All Implemented Interfaces:
EventStore
Thread-safe
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 Summary
ConstructorsConstructorDescriptionEventStoreGeneric(long maxStoredEvents) Creates a new EventStoreGeneric instance. -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentEventToken(List<Long> directoryIds) getNewEvents(String eventToken, Application application) getNewEvents(String eventToken, List<Long> directoryIds) voidhandleApplicationEvent(Object event) void
-
Constructor Details
-
EventStoreGeneric
public EventStoreGeneric(long maxStoredEvents) Creates a new EventStoreGeneric instance.- Parameters:
maxStoredEvents- maximum amount of events to keep in the memory
-
-
Method Details
-
getCurrentEventToken
- Specified by:
getCurrentEventTokenin interfaceEventStore
-
getNewEvents
public Events getNewEvents(String eventToken, List<Long> directoryIds) throws EventTokenExpiredException - Specified by:
getNewEventsin interfaceEventStore- Throws:
EventTokenExpiredException
-
getNewEvents
public Events getNewEvents(String eventToken, Application application) throws EventTokenExpiredException - Specified by:
getNewEventsin interfaceEventStore- Throws:
EventTokenExpiredException
-
storeOperationEvent
- Specified by:
storeOperationEventin interfaceEventStore
-
handleApplicationEvent
- Specified by:
handleApplicationEventin interfaceEventStore
-