Module wpool_process_callbacks

Behaviours: gen_event.

This module defines the wpool_process_callbacks behaviour.
Optional callback functions: handle_init_start/1, handle_worker_creation/1, handle_worker_death/2.

Data Types

event()

event() = handle_init_start | handle_worker_creation | handle_worker_death

state()

state() = module()

Function Index

add_callback_module/2
handle_call/2
handle_event/2
init/1
notify/3
remove_callback_module/2

Function Details

add_callback_module/2

add_callback_module(EventManager::wpool:name(), Module::module()) -> ok | {error, any()}

handle_call/2

handle_call(Msg, State::state()) -> {ok, {error, {unexpected_call, Msg}}, state()}

handle_event/2

handle_event(X1::{event(), [any()]}, Module::state()) -> {ok, state()}

init/1

init(Module::module()) -> {ok, state()}

notify/3

notify(Event::event(), Options::[wpool:option()], Args::[any()]) -> ok

remove_callback_module/2

remove_callback_module(EventManager::wpool:name(), Module::module()) -> ok | {error, any()}


Generated by EDoc