public static class JdbmEventStoreService.JdbmEventStoreMixin extends AbstractEventStoreMixin implements EventManagement, EventSource
EventStoreActivation.Activator
domainEventType, eventsType, identity, lock, logger, module
Constructor and Description |
---|
JdbmEventStoreService.JdbmEventStoreMixin() |
Modifier and Type | Method and Description |
---|---|
void |
activateEventStore() |
long |
count() |
Input<UnitOfWorkDomainEventsValue,IOException> |
events(long offset,
long limit)
Get list of UnitOfWorkDomainEventsValue after the given offset.
|
void |
passivateEventStore() |
Output<String,IOException> |
restore()
Output used to restore events from a backup
|
protected Output<UnitOfWorkDomainEventsValue,IOException> |
storeEvents0() |
lock, registerListener, storeEvents, unregisterListener
public JdbmEventStoreService.JdbmEventStoreMixin()
public void activateEventStore() throws Exception
activateEventStore
in interface EventStoreActivation
activateEventStore
in class AbstractEventStoreMixin
Exception
public void passivateEventStore() throws Exception
passivateEventStore
in interface EventStoreActivation
passivateEventStore
in class AbstractEventStoreMixin
Exception
public Output<String,IOException> restore()
EventManagement
restore
in interface EventManagement
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