DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
public Future<RecordMetadata> send(ProducerRecord<K, V> record, Callback callback, TxnSendOption option) {}
public enum TxnSendOption {
/**
* The irrecoverable {@link #send(ProducerRecord)} errors lead the transaction to the error state, which ends up an unsuccessful commit.
*/
NONE,
/**
* The records causing irrecoverable errors are excluded from the batch and the transaction is committed successfully.
* Note to use this, only in transactions. Otherwise {@link #send(ProducerRecord, Callback, TxnSendOption)} throws exception.
*/
CLEARIGNORE_SEND_ERRORS
} |
We define the method in the interface as well. The `default` implementation helps with backward compatibility.
...