Module brod_producers_sup

brod producers supervisor =============================================================================.

Behaviours: supervisor3.

Description

brod producers supervisor =============================================================================

Function Index

find_producer/3Find a brod_producer process pid running under ?PARTITIONS_SUP.
init/1supervisor3 callback.
post_init/1
start_link/0Start a root producers supervisor.
start_producer/4Dynamically start a per-topic supervisor.
stop_producer/2Dynamically stop a per-topic supervisor.

Function Details

find_producer/3

find_producer(SupPid::pid(), Topic::brod:topic(), Partition::brod:partition()) -> {ok, pid()} | {error, Reason}

Find a brod_producer process pid running under ?PARTITIONS_SUP.

init/1

init(X1) -> any()

supervisor3 callback.

post_init/1

post_init(X1) -> any()

start_link/0

start_link() -> {ok, pid()}

Start a root producers supervisor. For more details: @see brod_producer:start_link/4

start_producer/4

start_producer(SupPid::pid(), ClientPid::pid(), TopicName::brod:topic(), Config::brod:producer_config()) -> {ok, pid()} | {error, any()}

Dynamically start a per-topic supervisor

stop_producer/2

stop_producer(SupPid::pid(), TopicName::brod:topic()) -> ok | {}

Dynamically stop a per-topic supervisor


Generated by EDoc