class Kafka::Handle

Direct Known Subclasses

Defined in:

kafka/handle.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : LibKafka::TypeT, conf : Configuration) #

Creates a new Kafka handle and starts its operation according to the specified type.


[View source]
def self.new(handle : LibKafka::RdKafkaT) #

[View source]

Instance Method Detail

def brokers_add(brokerlist : String) #

Adds one or more brokers to the kafka handle's list of initial bootstrap brokers.


[View source]
def destroy #

Destroy Kafka handle.


[View source]
def member_id #

Returns this client's broker-assigned group member id.


[View source]
def name : String #

Returns Kafka handle name.


[View source]
def outq_len #

Returns the current out queue length.


[View source]
def poll(timeout_ms = 1000) #

Polls the provided kafka handle for events. Events will cause application provided callbacks to be called.


[View source]
def set_log_level(level : LibC::Int) #

[View source]
def to_unsafe : LibKafka::RdKafkaT #

[View source]