Class ChoreographyEventBus

java.lang.Object
com.tnsai.coordination.choreography.ChoreographyEventBus

public final class ChoreographyEventBus extends Object
Event-driven bus for choreography coordination. Supports topic-based publish/subscribe with event history.

Example usage:


 ChoreographyEventBus bus = new ChoreographyEventBus();
 bus.subscribe("order.placed", (name, event) -> processOrder(event));
 bus.publish(ChoreographyEvent.of("order.placed", "system", "order-123"));
 
  • Constructor Details

    • ChoreographyEventBus

      public ChoreographyEventBus()
    • ChoreographyEventBus

      public ChoreographyEventBus(int maxHistory)
  • Method Details