package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type mset
type mset_policy = [
  1. | `Balance_load
  2. | `Failover
]
type mset_config = {
  1. mset_mclient_config : ManagedClient.mclient_config;
  2. mset_policy : mset_policy;
  3. mset_pending_calls_max : int;
  4. mset_pending_calls_norm : int;
  5. mset_idempotent_max : int;
  6. mset_idempotent_wait : float;
}
exception Cluster_service_unavailable
val create_mset_config : ?mclient_config:ManagedClient.mclient_config -> ?policy:mset_policy -> ?pending_calls_max:int -> ?pending_calls_norm:int -> ?idempotent_max:int -> ?idempotent_wait:float -> unit -> mset_config
val create_mset : mset_config -> (Rpc_client.connector * int) array -> Unixqueue.event_system -> mset
val mset_pick : ?from:int list -> mset -> ManagedClient.mclient * int
val mset_services : mset -> (Rpc_client.connector * int) array
val mset_load : mset -> int array
val event_system : mset -> Unixqueue.event_system
val shut_down : mset -> unit
val sync_shutdown : mset -> unit
val trigger_shutdown : mset -> (unit -> unit) -> unit
val idempotent_async_call : ?from:int list -> mset -> (ManagedClient.mclient -> 'a -> ((unit -> 'b) -> unit) -> unit) -> 'a -> ((unit -> 'b) -> unit) -> unit
val idempotent_sync_call : ?from:int list -> mset -> (ManagedClient.mclient -> 'a -> ((unit -> 'b) -> unit) -> unit) -> 'a -> 'b
OCaml

Innovation. Community. Security.