Module kyu_worker

This module is responsible for commication with and between consumer workers.

Behaviours: gen_server, poolboy_worker.

This module defines the kyu_worker behaviour.
Required callback functions: handle_message/2.
Optional callback functions: init/1, handle_info/2, terminate/2.

Description

This module is responsible for commication with and between consumer workers.

Function Index

get_all/1Returns the worker pids.
send/2Sends info to one of the worker processes (in round-robin fashion).
send_each/2Sends info to all of the worker processes.

Function Details

get_all/1

get_all(Name::kyu_consumer:name()) -> [pid()]

Returns the worker pids.

send/2

send(Name::kyu_consumer:name(), Info::term()) -> term()

Sends info to one of the worker processes (in round-robin fashion).

send_each/2

send_each(Name::kyu_consumer:name(), Info::term()) -> list()

Sends info to all of the worker processes.


Generated by EDoc