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/2Adds a callback module.
notify/3Sends a notification to all registered callback modules.
remove_callback_module/2Removes a callback module.

Function Details

add_callback_module/2

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

Adds a callback module.

notify/3

notify(Event::event(), EventMgr::undefined | atom(), Args::[any()]) -> ok

Sends a notification to all registered callback modules.

remove_callback_module/2

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

Removes a callback module.


Generated by EDoc