public abstract class AbstractApplicationEventStoreMixin extends Object implements ApplicationEventStore, ApplicationEventStream, ApplicationEventStoreActivation
ApplicationEventStoreActivation.Activator
Modifier and Type | Field and Description |
---|---|
protected org.qi4j.api.type.ValueType |
domainEventType |
protected org.qi4j.api.entity.Identity |
identity |
protected Lock |
lock |
protected org.slf4j.Logger |
logger |
protected org.qi4j.api.structure.Module |
module |
protected org.qi4j.api.type.ValueType |
transactionEventsType |
Constructor and Description |
---|
AbstractApplicationEventStoreMixin() |
Modifier and Type | Method and Description |
---|---|
void |
activateApplicationEventStore() |
protected abstract void |
commit() |
protected void |
lock()
Fix for this bug:
http://bugs.sun.com/bugdatabase/view_bug.do?
|
void |
passivateApplicationEventStore() |
void |
registerListener(org.qi4j.io.Output<TransactionApplicationEvents,? extends Throwable> listener) |
protected abstract void |
rollback() |
TransactionApplicationEvents |
storeEvents(Iterable<ApplicationEvent> events) |
protected abstract void |
storeEvents(TransactionApplicationEvents transactionDomain) |
void |
unregisterListener(org.qi4j.io.Output<TransactionApplicationEvents,? extends Throwable> listener) |
@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 transactionEventsType
protected Lock lock
@Structure protected org.qi4j.api.structure.Module module
public void activateApplicationEventStore() throws Exception
activateApplicationEventStore
in interface ApplicationEventStoreActivation
Exception
public void passivateApplicationEventStore() throws Exception
passivateApplicationEventStore
in interface ApplicationEventStoreActivation
Exception
public TransactionApplicationEvents storeEvents(Iterable<ApplicationEvent> events) throws IOException
storeEvents
in interface ApplicationEventStore
IOException
public void registerListener(org.qi4j.io.Output<TransactionApplicationEvents,? extends Throwable> listener)
registerListener
in interface ApplicationEventStream
public void unregisterListener(org.qi4j.io.Output<TransactionApplicationEvents,? extends Throwable> listener)
unregisterListener
in interface ApplicationEventStream
protected abstract void rollback() throws IOException
IOException
protected abstract void commit() throws IOException
IOException
protected abstract void storeEvents(TransactionApplicationEvents transactionDomain) throws IOException
IOException
protected void lock()