Interface EventCoordinator.Handle

Enclosing interface:
EventCoordinator

public static interface EventCoordinator.Handle
Represents a handle to a coordination instance, allowing the engine to notify of new events and to terminate the coordination.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked by the storage engine when new events have been appended.
    void
    Terminates this coordination instance, releasing any resources or threads used internally.
  • Method Details

    • onEventsAppended

      void onEventsAppended(List<TaggedEventMessage<?>> events)
      Invoked by the storage engine when new events have been appended.

      This method may be called concurrently from multiple threads. Implementations should avoid heavy or blocking operations.

      Parameters:
      events - the events that were appended; never null or empty
    • terminate

      void terminate()
      Terminates this coordination instance, releasing any resources or threads used internally.

      After termination, the handle should not be used again.