ConsumerErrorHandler

public interface ConsumerErrorHandler<M extends Message> implements BiConsumer<T, U>

Functional interface for handlers of errors caused by consumers of messages.

Parameters

<M>

the type of messages delivered to consumers

See also

Functions

Link copied to clipboard
public static ConsumerErrorHandler<M> logError<M extends Message>(FluentLogger logger, String messageFormat, Class<? extends Message> type)
Obtains the handler which logs the fact of the error using the severe level of the passed logger.

Inherited functions

Link copied to clipboard
public abstract void accept(T p, U p1)
Link copied to clipboard
public BiConsumer<T, U> andThen(BiConsumer<? extends Object, ? extends Object> after)