T
- the data type.@FunctionalInterface
public interface GenericErrorHandler<T>
Modifier and Type | Method and Description |
---|---|
void |
handle(java.lang.Exception thrownException,
T data)
Handle the exception.
|
default void |
handle(java.lang.Exception thrownException,
T data,
org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
Handle the exception.
|
void handle(java.lang.Exception thrownException, T data)
thrownException
- The exception.data
- the data.default void handle(java.lang.Exception thrownException, T data, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
thrownException
- The exception.data
- the data.consumer
- the consumer.