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
code_change/3
handle_call/2
handle_event/2
handle_info/2
init/1
notify/3
remove_callback_module/2
terminate/2

Function Details

add_callback_module/2

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

code_change/3

code_change(OldVsn::any(), State::state(), Extra::any()) -> {ok, state()}

handle_call/2

handle_call(X1::any(), State::state()) -> {ok, ok, state()}

handle_event/2

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

handle_info/2

handle_info(X1::any(), State::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()}

terminate/2

terminate(Reason::any(), State::state()) -> ok


Generated by EDoc, Oct 25 2018, 07:56:29.