public interface Callback
Modifier and Type | Method and Description |
---|---|
void |
onCompletion(RecordMetadata metadata, java.lang.Exception exception)
A callback method the user can implement to provide synchronous handling of request completion.
|
void onCompletion(RecordMetadata metadata, java.lang.Exception exception)
metadata
- The metadata for the record that was sent (i.e. the partition and offset). Null if an error occurred.exception
- The exception thrown during processing of this record. Null if no error occurred. Possible thrown exceptions include: org.oracle.okafka.common.errors.TimeoutException thrown when a batch is expired. javax.jms.JMSException thrown for any other exception.