antikythera v0.4.0 AntikytheraCore.ExecutorPool.WebsocketConnectionsCounter View Source
A GenServer
to count number of websocket connections that belong to the executor pool.
Before termination of the current host, all monitored websocket connections will be disconnected
in order to prompt clients to reconnect to other active nodes
(this is executed within temporary processes but uses monitors created by this GenServer
).
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Specs
gradually_terminate_all_ws_connections() :: :ok
Specs
increment(Antikythera.ExecutorPool.Id.t(), pid()) :: :ok | {:error, :too_many_connections}
Specs
set_max(Antikythera.ExecutorPool.Id.t(), non_neg_integer()) :: :ok
Specs
start_terminating_all_ws_connections() :: :ok
Specs
stats(Antikythera.ExecutorPool.Id.t()) :: %{ required(:count | :max | :rejected) => non_neg_integer() }