Class FeederErrorRouter

java.lang.Object
software.spool.publisher.api.utils.FeederErrorRouter

public class FeederErrorRouter extends Object
Provides the default ErrorRouter configuration for the publisher.

The routing table maps each typed exception to an appropriate failure event emitted on the EventBusEmitter:

  • InboxReadExceptionInboxItemConsumptionFailed
  • InboxUpdateExceptionInboxItemStoreFailed
See Also:
  • ErrorRouter
  • Constructor Details

    • FeederErrorRouter

      public FeederErrorRouter()
  • Method Details

    • defaults

      public static software.spool.core.utils.ErrorRouter defaults(software.spool.core.port.EventBusEmitter bus)
      Creates the default error router for publisher operations.
      Parameters:
      bus - the event bus emitter used to publish failure events; must not be null
      Returns:
      a pre-configured ErrorRouter