This module defines the mero_pool behaviour.
Required callback functions: transaction/3, close/2, connect/3, controlling_process/2.
client() = term()
conn() = #conn{updated = erlang:timestamp(), pool = module(), worker_module = module(), client = client()}
checkin/1 | Return a connection to specfied pool updating its timestamp. |
checkin_closed/1 | Return a connection that has been closed. |
checkout/2 | Checks out an element of the pool. |
close/2 | |
init/6 | |
pool_loop/3 | |
start_link/5 | |
state/1 | Returns the specified PoolName state. |
system_continue/3 | |
system_terminate/4 | |
transaction/3 | Executes an operation. |
checkin(Connection::conn()) -> ok
Return a connection to specfied pool updating its timestamp
checkin_closed(Connection::conn()) -> ok
Return a connection that has been closed.
checkout(PoolName::atom(), TimeLimit::tuple()) -> {ok, conn()} | {error, Reason::term()}
Checks out an element of the pool.
close(Conn, Reason) -> any()
init(Parent, ClusterName, Host, Port, PoolName, WrkModule) -> any()
pool_loop(State, Parent, Deb) -> any()
start_link(ClusterName, Host, Port, PoolName, WorkerModule) -> any()
state(PoolName::atom()) -> term()
Returns the specified PoolName state.
system_continue(Parent, Deb, State) -> any()
system_terminate(Reason::term(), Parent::term(), Deb::term(), State::term()) -> no_return()
transaction(Connection::conn(), Function::atom(), Args::list()) -> {NewConnection::conn(), {ok, any()}} | {error, any()}
Executes an operation
Generated by EDoc