class type managed_client_t = object
.. end
This is an internally used object that encapsulates clients
method host_port : (Unix.inet_addr * int) option
Return the host and port of the server this managed client is
bound to.
method client : Hydro_endpoint.Client.t
Return the current incarnation of the client
method client_incarnation : int
Return the incarnation number of the client
just returned
method available : float -> bool
available t
: Says whether the client is available for new calls
at timestamp t
method deactivate : float -> unit
Deactivate this client for the passed number of seconds
method unused_since : float option
If this object is currently unused (i.e. no connection is held),
this method tells since when
method record_error : float -> unit
Record an error situation. The float is the number of seconds the
situation is to be remembered
method clear_error : unit -> unit
Clear all error state
method error_count : int
Return the number of recorded errors
method trigger_shutdown : ?ondown:(unit -> unit) -> unit -> unit
Shut the client down. When it is down, the ondown
callback is
invoked
method abort : unit -> unit
Abort the client (immediate shutdown