class Kafka::Configuration

Defined in:

kafka/configuration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(conf : LibKafka::RdKafkaConfT = LibKafka.conf_new) #

Create configuration object.


[View source]

Instance Method Detail

def destroy #

Destroys the configuration object.


[View source]
def dump #

Dump the configuration properties and values of configuration to an array with "key", "value" pairs.


[View source]
def dup : Configuration #

Creates a copy/duplicate of configuration object configuration.


[View source]
def get(name : String) #

Retrieve configuration value for property name.


[View source]
def set(name : String, value : String) #

Sets a configuration property.


[View source]
def set_consume_cb(&consume_cb : Message -> ) #

Consumer: Set consume callback for use with rd_kafka_consumer_poll().


[View source]
def set_default_topic_conf #

Sets the default topic configuration to use for automatically subscribed topics (e.g., through pattern-matched topics). The topic configuration object is not usable after this call.


[View source]
def set_dr_msg_cb(&dr_msg_cb : Producer, Message -> ) #

Producer: Set delivery report callback in provided configuration object.


[View source]
def set_error_cb(&error_cb : Handle, LibC::Int, String -> ) #

Set error callback in provided configuration object.


[View source]
def set_log_cb #

Set logger callback.


[View source]
def set_offset_commit_cb #

Consumer: Set offset commit callback for use with consumer groups.


[View source]
def set_opaque #

Sets the application's opaque pointer that will be passed to callbacks.


[View source]
def set_open_cb #

Set open callback.


[View source]
def set_rebalance_cb(&rebalance_cb : Consumer, LibKafka::RespErrT, TopicPartitionList -> ) #

Consumer: Set rebalance callback for use with coordinated consumer group balancing.


[View source]
def set_socket_cb #

Set socket callback.


[View source]
def set_stats_cb #

Set statistics callback in provided configuration object.


[View source]
def set_throttle_cb #

Set throttle callback.


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

[View source]