public abstract static class MemoryEventStoreService.MemoryEventStoreMixin extends AbstractEventStoreMixin implements EventSource, EventStoreActivation
EventStoreActivation.Activator
domainEventType, eventsType, identity, lock, logger, module
Constructor and Description |
---|
MemoryEventStoreService.MemoryEventStoreMixin() |
Modifier and Type | Method and Description |
---|---|
long |
count() |
Input<UnitOfWorkDomainEventsValue,IOException> |
events(long offset,
long limit)
Get list of UnitOfWorkDomainEventsValue after the given offset.
|
protected Output<UnitOfWorkDomainEventsValue,IOException> |
storeEvents0() |
activateEventStore, lock, passivateEventStore, registerListener, storeEvents, unregisterListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activateEventStore, passivateEventStore
public MemoryEventStoreService.MemoryEventStoreMixin()
public Input<UnitOfWorkDomainEventsValue,IOException> events(long offset, long limit)
EventSource
To get the first set of events, use 0 as offset parameter to get events from the start.
events
in interface EventSource
offset
- where in the list of events to startlimit
- maximum number of events returnedpublic long count()
count
in interface EventSource
protected Output<UnitOfWorkDomainEventsValue,IOException> storeEvents0()
storeEvents0
in class AbstractEventStoreMixin