public static class JdbmEventStoreService.JdbmEventStoreMixin extends AbstractEventStoreMixin implements EventManagement, EventSource
EventStoreActivation.ActivatordomainEventType, 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, unregisterListenerpublic JdbmEventStoreService.JdbmEventStoreMixin()
public void activateEventStore()
throws Exception
activateEventStore in interface EventStoreActivationactivateEventStore in class AbstractEventStoreMixinExceptionpublic void passivateEventStore()
throws Exception
passivateEventStore in interface EventStoreActivationpassivateEventStore in class AbstractEventStoreMixinExceptionpublic Output<String,IOException> restore()
EventManagementrestore in interface EventManagementpublic Input<UnitOfWorkDomainEventsValue,IOException> events(long offset, long limit)
EventSourceTo get the first set of events, use 0 as offset parameter to get events from the start.
events in interface EventSourceoffset - where in the list of events to startlimit - maximum number of events returnedpublic long count()
count in interface EventSourceprotected Output<UnitOfWorkDomainEventsValue,IOException> storeEvents0()
storeEvents0 in class AbstractEventStoreMixin