Module Kafka
type handlertype topictype queuetype partition= inttype offset= int64type message=|Message of topic * partition * offset * string * string option|PartitionEnd of topic * partition * offsettype msg_id= inttype error=
exceptionError of error * string
val new_consumer : (string * string) list -> handlerval new_producer : ?delivery_callback:(msg_id -> error option -> unit) -> (string * string) list -> handlerval destroy_handler : handler -> unitval handler_name : handler -> stringval new_topic : ?partitioner_callback:(int -> string -> partition) -> handler -> string -> (string * string) list -> topicval destroy_topic : topic -> unitval topic_name : topic -> stringval produce : topic -> partition -> ?key:string -> ?msg_id:msg_id -> string -> unitval partition_unassigned : partitionval outq_len : handler -> intval poll_events : ?timeout_ms:int -> handler -> intval wait_delivery : ?timeout_ms:int -> ?max_outq_len:int -> handler -> unitWait that messages are delivered (waiting that less than max_outq_len messages are pending).
val consume_start : topic -> partition -> offset -> unitval offset_beginning : offsetval offset_end : offsetval offset_stored : offsetval offset_tail : int -> offsetval consume_stop : topic -> partition -> unitval consume : ?timeout_ms:int -> topic -> partition -> messageval consume_batch : ?timeout_ms:int -> ?msg_count:int -> topic -> partition -> message listval new_queue : handler -> queueval destroy_queue : queue -> unitval consume_start_queue : queue -> topic -> partition -> offset -> unitval consume_queue : ?timeout_ms:int -> queue -> messageval consume_batch_queue : ?timeout_ms:int -> ?msg_count:int -> queue -> message listval store_offset : topic -> partition -> offset -> unit
module Metadata : sig ... endval topic_metadata : ?timeout_ms:int -> handler -> topic -> Metadata.topic_metadataval local_topics_metadata : ?timeout_ms:int -> handler -> Metadata.topic_metadata listval all_topics_metadata : ?timeout_ms:int -> handler -> Metadata.topic_metadata list