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 ApplicationEventStoreActivationExceptionpublic void passivateApplicationEventStore()
throws Exception
passivateApplicationEventStore in interface ApplicationEventStoreActivationExceptionpublic TransactionApplicationEvents storeEvents(Iterable<ApplicationEvent> events) throws IOException
storeEvents in interface ApplicationEventStoreIOExceptionpublic void registerListener(org.qi4j.io.Output<TransactionApplicationEvents,? extends Throwable> listener)
registerListener in interface ApplicationEventStreampublic void unregisterListener(org.qi4j.io.Output<TransactionApplicationEvents,? extends Throwable> listener)
unregisterListener in interface ApplicationEventStreamprotected abstract void rollback()
throws IOException
IOExceptionprotected abstract void commit()
throws IOException
IOExceptionprotected abstract void storeEvents(TransactionApplicationEvents transactionDomain) throws IOException
IOExceptionprotected void lock()