Class EventPublisher

java.lang.Object
org.axonframework.disruptor.commandhandling.EventPublisher
All Implemented Interfaces:
com.lmax.disruptor.EventHandler<CommandHandlingEntry>

public class EventPublisher extends Object implements com.lmax.disruptor.EventHandler<CommandHandlingEntry>
Component of the DisruptorCommandBus that stores and publishes events generated by the command's execution.
Since:
2.0
Author:
Allard Buijze
  • Constructor Details

    • EventPublisher

      public 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.
      Parameters:
      executor - The executor which schedules response reporting
      transactionManager - The transaction manager that manages the transaction around event storage and publication
      rollbackConfiguration - The configuration that indicates which exceptions should result in a UnitOfWork
      segmentId - The ID of the segment this publisher should handle
  • Method Details