Expand description
Producer callback interface.
Translated from org.apache.kafka.clients.producer.Callback.
Traits§
- Callback
- A callback interface that the user can implement to allow code to execute when the request is complete. This callback will generally execute in the background I/O task so it should be fast.
Functions§
- new
- Returns a
Callbackthat callsfunction, standing in for a Java lambda implementingCallback:functionison_completion, and every other method keeps its default. A method Java adds later as an overload ofonCompletiongets its own factory,with_<parameter>, taking a function of that overload’s shape. The closure’s parameter types are inferred: