Module ecpool_worker

Behaviours: gen_server.

This module defines the ecpool_worker behaviour.
Required callback functions: connect/1.

Function Index

behaviour_info/1
client/1Get client/connection.
code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
is_connected/1Is client connected?.
set_reconnect_callback/2
start_link/4Start a pool worker.
terminate/2

Function Details

behaviour_info/1

behaviour_info(Other) -> any()

client/1

client(Pid::pid()) -> {ok, Client::pid()} | {error, Reason::term()}

Get client/connection.

code_change/3

code_change(OldVsn, State, Extra) -> any()

handle_call/3

handle_call(Req, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1) -> any()

is_connected/1

is_connected(Pid::pid()) -> boolean()

Is client connected?

set_reconnect_callback/2

set_reconnect_callback(Pid::pid(), OnReconnect::ecpool:reconn_callback()) -> ok

start_link/4

start_link(Pool::atom(), Id::pos_integer(), Mod::module(), Opts::list()) -> {ok, pid()} | ignore | {error, any()}

Start a pool worker.

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc