Module brod_consumers_sup

brod consumers supervisor =============================================================================.

Behaviours: supervisor3.

Description

brod consumers supervisor =============================================================================

Function Index

find_consumer/3Find a brod_consumer process pid running under ?PARTITIONS_SUP.
init/1supervisor3 callback.
post_init/1
start_consumer/4Dynamically start a per-topic supervisor.
start_link/0Start a root consumers supervisor.
stop_consumer/2Dynamically stop a per-topic supervisor.

Function Details

find_consumer/3

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

Find a brod_consumer process pid running under ?PARTITIONS_SUP

init/1

init(X1) -> any()

supervisor3 callback.

post_init/1

post_init(X1) -> any()

start_consumer/4

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

Dynamically start a per-topic supervisor.

start_link/0

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

Start a root consumers supervisor.

stop_consumer/2

stop_consumer(SupPid::pid(), TopicName::brod:topic()) -> ok | {error, any()}

Dynamically stop a per-topic supervisor.


Generated by EDoc