public class EventPublisher extends Object implements com.lmax.disruptor.EventHandler<CommandHandlingEntry>
Constructor and Description |
---|
EventPublisher(Executor executor,
TransactionManager transactionManager,
RollbackConfiguration rollbackConfiguration,
int segmentId)
Initializes the EventPublisher to publish Events to the given
eventStore and eventBus
for aggregate of given aggregateType . |
Modifier and Type | Method and Description |
---|---|
void |
onEvent(CommandHandlingEntry entry,
long sequence,
boolean endOfBatch) |
public EventPublisher(Executor executor, TransactionManager transactionManager, RollbackConfiguration rollbackConfiguration, int segmentId)
eventStore
and eventBus
for aggregate of given aggregateType
.executor
- The executor which schedules response reportingtransactionManager
- The transaction manager that manages the transaction around event storage and
publicationrollbackConfiguration
- The configuration that indicates which exceptions should result in a UnitOfWorksegmentId
- The ID of the segment this publisher should handlepublic void onEvent(CommandHandlingEntry entry, long sequence, boolean endOfBatch)
onEvent
in interface com.lmax.disruptor.EventHandler<CommandHandlingEntry>
Copyright © 2010–2020. All rights reserved.