|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.kafka.clients.producer.internals.ErrorLoggingCallback
public class ErrorLoggingCallback
Constructor Summary | |
---|---|
ErrorLoggingCallback(java.lang.String topic,
byte[] key,
byte[] value,
boolean logAsString)
|
Method Summary | |
---|---|
void |
onCompletion(RecordMetadata metadata,
java.lang.Exception e)
A callback method the user can implement to provide asynchronous handling of request completion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorLoggingCallback(java.lang.String topic, byte[] key, byte[] value, boolean logAsString)
Method Detail |
---|
public void onCompletion(RecordMetadata metadata, java.lang.Exception e)
Callback
onCompletion
in interface Callback
metadata
- The metadata for the record that was sent (i.e. the partition and offset). Null if an error
occurred.e
- The exception thrown during processing of this record. Null if no error occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |