Behaviours: gen_server.
| checkin/2 | release a socket in the pool. |
| checkout/4 | fetch a socket from the pool. |
| child_spec/2 | return a child spec suitable for embeding your pool in the supervisor. |
| code_change/3 | |
| count/1 | get the number of connections in the pool. |
| count/2 | get the number of connections in the pool for {Host0, Port, Transport} |
| find_pool/1 | |
| get_stats/1 | |
| handle_call/3 | |
| handle_cast/2 | |
| handle_info/2 | |
| init/1 | |
| max_connections/1 | get max pool size. |
| notify/2 | |
| set_max_connections/2 | change the pool size. |
| set_timeout/2 | change the connection timeout. |
| start/0 | |
| start_link/2 | |
| start_pool/2 | start a pool. |
| stop_pool/1 | stop a pool. |
| terminate/2 | |
| timeout/1 | get timeout. |
checkin(X1, Socket) -> any()
release a socket in the pool
checkout(Host, Port, Transport, Client) -> any()
fetch a socket from the pool
child_spec(Name, Options0) -> any()
return a child spec suitable for embeding your pool in the supervisor
code_change(OldVsn, State, Extra) -> any()
count(Name) -> any()
get the number of connections in the pool
count(Name, X2) -> any()
get the number of connections in the pool for {Host0, Port, Transport}
find_pool(Name) -> any()
get_stats(Pool) -> any()
handle_call(X1, From, State) -> any()
handle_cast(Msg, State) -> any()
handle_info(X1, State) -> any()
init(X1) -> any()
max_connections(Name) -> any()
get max pool size
notify(Pool, Msg) -> any()
set_max_connections(Name, NewSize) -> any()
change the pool size
set_timeout(Name, NewTimeout) -> any()
change the connection timeout
start() -> any()
start_link(Name, Options0) -> any()
start_pool(Name, Options) -> any()
start a pool
stop_pool(Name) -> any()
stop a pool
terminate(Reason, State) -> any()
timeout(Name) -> any()
get timeout
Generated by EDoc