class type pool_t = object .. end
A pool keeps connections from clients to servers
method set_esys : Unixqueue.event_system -> unit
Tell the pool the event system. Can only be done once
method request_clients : Hydro_types.system ->
shared_or_private ->
int ->
(Hydro_client_connector.connector * Hydro_types.client_params) list ->
managed_client_t list
Request clients from the pool
method deactivate_host : Unix.inet_addr -> float -> unit
Deactivate the host for this number of seconds
method deactivate_port : Hydro_types.network_port -> float -> unit
Deactivate the port for this number of seconds
method shutdown : unit -> unit
Shuts all pooled clients down. Note that this is an asynchronous
shutdown, i.e. the shutdown actions are performed first when the
event system is run!
method abort : unit -> unit
Aborts all pooled clients
method reset : unit -> unit
Shuts all clients down, but new clients can be created
method is_available : Unix.inet_addr ->
Hydro_types.network_port option ->
shared_or_private -> float -> bool
This method is called by the pool implementation to check for
the availability of a service. It is exposed in the public
interface so it can be overridden by specialized pool
implementations.