public interface ProductionExceptionHandler
extends org.apache.kafka.common.Configurable
| Modifier and Type | Interface and Description |
|---|---|
static class |
ProductionExceptionHandler.ProductionExceptionHandlerResponse |
static class |
ProductionExceptionHandler.SerializationExceptionOrigin |
| Modifier and Type | Method and Description |
|---|---|
default ProductionExceptionHandler.ProductionExceptionHandlerResponse |
handle(ErrorHandlerContext context,
org.apache.kafka.clients.producer.ProducerRecord<byte[],byte[]> record,
Exception exception)
Inspect a record that we attempted to produce, and the exception that resulted
from attempting to produce it and determine whether or not to continue processing.
|
default ProductionExceptionHandler.ProductionExceptionHandlerResponse |
handle(org.apache.kafka.clients.producer.ProducerRecord<byte[],byte[]> record,
Exception exception)
Deprecated.
Since 3.9. Use
handle(ErrorHandlerContext, ProducerRecord, Exception) instead. |
default ProductionExceptionHandler.ProductionExceptionHandlerResponse |
handleSerializationException(ErrorHandlerContext context,
org.apache.kafka.clients.producer.ProducerRecord record,
Exception exception,
ProductionExceptionHandler.SerializationExceptionOrigin origin)
Handles serialization exception and determine if the process should continue.
|
default ProductionExceptionHandler.ProductionExceptionHandlerResponse |
handleSerializationException(org.apache.kafka.clients.producer.ProducerRecord record,
Exception exception)
Deprecated.
|
@Deprecated default ProductionExceptionHandler.ProductionExceptionHandlerResponse handle(org.apache.kafka.clients.producer.ProducerRecord<byte[],byte[]> record, Exception exception)
handle(ErrorHandlerContext, ProducerRecord, Exception) instead.record - The record that failed to produceexception - The exception that occurred during productiondefault ProductionExceptionHandler.ProductionExceptionHandlerResponse handle(ErrorHandlerContext context, org.apache.kafka.clients.producer.ProducerRecord<byte[],byte[]> record, Exception exception)
context - The error handler context metadatarecord - The record that failed to produceexception - The exception that occurred during production@Deprecated default ProductionExceptionHandler.ProductionExceptionHandlerResponse handleSerializationException(org.apache.kafka.clients.producer.ProducerRecord record, Exception exception)
handleSerializationException(ErrorHandlerContext, ProducerRecord, Exception, SerializationExceptionOrigin) instead.record - the record that failed to serializeexception - the exception that occurred during serializationdefault ProductionExceptionHandler.ProductionExceptionHandlerResponse handleSerializationException(ErrorHandlerContext context, org.apache.kafka.clients.producer.ProducerRecord record, Exception exception, ProductionExceptionHandler.SerializationExceptionOrigin origin)
context - the error handler context metadatarecord - the record that failed to serializeexception - the exception that occurred during serializationorigin - the origin of the serialization exception