public abstract class AbstractEventStoreMixin extends Object implements EventStore, EventStream, EventStoreActivation
EventStoreActivation.Activator
Modifier and Type | Field and Description |
---|---|
protected org.qi4j.api.type.ValueType |
domainEventType |
protected org.qi4j.api.type.ValueType |
eventsType |
protected org.qi4j.api.entity.Identity |
identity |
protected Lock |
lock |
protected org.slf4j.Logger |
logger |
protected org.qi4j.api.structure.Module |
module |
Constructor and Description |
---|
AbstractEventStoreMixin() |
Modifier and Type | Method and Description |
---|---|
void |
activateEventStore() |
protected void |
lock()
Fix for this bug:
http://bugs.sun.com/bugdatabase/view_bug.do?
|
void |
passivateEventStore() |
void |
registerListener(UnitOfWorkEventsListener subscriber) |
org.qi4j.io.Output<UnitOfWorkDomainEventsValue,IOException> |
storeEvents() |
protected abstract org.qi4j.io.Output<UnitOfWorkDomainEventsValue,IOException> |
storeEvents0() |
void |
unregisterListener(UnitOfWorkEventsListener subscriber) |
@This protected org.qi4j.api.entity.Identity identity
protected org.slf4j.Logger logger
protected org.qi4j.api.type.ValueType domainEventType
protected org.qi4j.api.type.ValueType eventsType
protected Lock lock
@Structure protected org.qi4j.api.structure.Module module
public void activateEventStore() throws Exception
activateEventStore
in interface EventStoreActivation
Exception
public void passivateEventStore() throws Exception
passivateEventStore
in interface EventStoreActivation
Exception
public org.qi4j.io.Output<UnitOfWorkDomainEventsValue,IOException> storeEvents()
storeEvents
in interface EventStore
public void registerListener(UnitOfWorkEventsListener subscriber)
registerListener
in interface EventStream
public void unregisterListener(UnitOfWorkEventsListener subscriber)
unregisterListener
in interface EventStream
protected abstract org.qi4j.io.Output<UnitOfWorkDomainEventsValue,IOException> storeEvents0()
protected void lock()