misha_cafex v0.0.6 Cafex

Summary

Functions

Produce message to kafka server in the asynchronous way

Produce message to kafka server in the synchronous way

See Cafex.Supervisor.stop_consumer/1

See Cafex.Supervisor.stop_producer/1

Types

server :: {host :: String.t, port :: 0..65535}

Functions

async_produce(producer, value, opts \\ [])

Produce message to kafka server in the asynchronous way.

See Cafex.Producer.produce/3

fetch(topic_pid, partition, offset)
produce(producer, value, opts \\ [])

Produce message to kafka server in the synchronous way.

See Cafex.Producer.produce/3

start_consumer(name, opts \\ [])

Specs

Start a consumer.

Read Cafex.Consumer.Manager for more details.

start_producer(topic_name, opts \\ [])

Specs

start_producer(topic_name :: String.t, opts :: Cafex.Producer.options) :: Supervisor.on_start_child

Start a producer.

Read Cafex.Producer for more details.

start_topic(name, brokers, opts \\ [])
stop_consumer(name)

See Cafex.Supervisor.stop_consumer/1.

stop_producer(sup)

See Cafex.Supervisor.stop_producer/1.