Behaviours: gen_server.
This module defines the ecpool_worker behaviour.
Required callback functions: connect/1.
| behaviour_info/1 | |
| client/1 | Get client/connection. |
| code_change/3 | |
| handle_call/3 | |
| handle_cast/2 | |
| handle_info/2 | |
| init/1 | |
| is_connected/1 | Is client connected?. |
| set_reconnect_callback/2 | |
| start_link/4 | Start a pool worker. |
| terminate/2 |
behaviour_info(Other) -> any()
client(Pid::pid()) -> {ok, Client::pid()} | {error, Reason::term()}
Get client/connection.
code_change(OldVsn, State, Extra) -> any()
handle_call(Req, From, State) -> any()
handle_cast(Msg, State) -> any()
handle_info(Info, State) -> any()
init(X1) -> any()
is_connected(Pid::pid()) -> boolean()
Is client connected?
set_reconnect_callback(Pid::pid(), OnReconnect::ecpool:reconn_callback()) -> ok
start_link(Pool::atom(), Id::pos_integer(), Mod::module(), Opts::list()) -> {ok, pid()} | ignore | {error, any()}
Start a pool worker.
terminate(Reason, State) -> any()
Generated by EDoc