Kafka::Producer
Inherits Reference < Object
Constructors
new(config : Hash(String, String))
creates a new kafka handle using provided config. Throws exception on error
Instance methods
finalize
Sourceflush(timeout = 1000)
Sourcepoll(timeout = 500)
Sourceproduce(topic : String, key : Bytes, payload : Bytes, timestamp : Int64)
Sourceproduce(topic : String, key : Bytes, payload : Bytes)
Sourceproduce0(topic : String, msg : Message)
Sourceproduce_batch(topic : String, batch : Array(NamedTuple(key: Array(UInt8), msg: Array(UInt8))))
Source