Interface OnErrorHandler<EVENT_TYPE>
-
- Type Parameters:
EVENT_TYPE- the event type being published by the event bus
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface OnErrorHandler<EVENT_TYPE>
Error Handler interface for theLocalEventBus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(EventHandler<EVENT_TYPE> failingSubscriber, EVENT_TYPE event, Exception exception)Will be called if a given consumer/subscriber fails to handle a message
-
-
-
Method Detail
-
handle
void handle(EventHandler<EVENT_TYPE> failingSubscriber, EVENT_TYPE event, Exception exception)
Will be called if a given consumer/subscriber fails to handle a message- Parameters:
failingSubscriber- the subscriber instance that failedevent- the event the subscriber failed to handleexception- the exception thrown by thefailingSubscriber
-
-