Class FeederErrorRouter
java.lang.Object
software.spool.publisher.api.utils.FeederErrorRouter
Provides the default
ErrorRouter configuration for the publisher.
The routing table maps each typed exception to an appropriate failure event
emitted on the EventBusEmitter:
InboxReadException→InboxItemConsumptionFailedInboxUpdateException→InboxItemStoreFailed
- See Also:
-
ErrorRouter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic software.spool.core.utils.ErrorRouterdefaults(software.spool.core.port.EventBusEmitter bus) Creates the default error router for publisher operations.
-
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 benull- Returns:
- a pre-configured
ErrorRouter
-