antikythera v0.2.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
Link to this section Functions
Link to this function
gradually_terminate_all_ws_connections()
View Source
gradually_terminate_all_ws_connections() :: :ok
Link to this function
increment(epool_id, ws_pid)
View Source
increment(Antikythera.ExecutorPool.Id.t(), pid()) :: :ok | {:error, :too_many_connections}
Link to this function
set_max(epool_id, max)
View Source
set_max(Antikythera.ExecutorPool.Id.t(), non_neg_integer()) :: :ok
Link to this function
start_link(max, name)
View Source
start_link(non_neg_integer(), atom()) :: {:ok, pid()}
Link to this function
start_terminating_all_ws_connections()
View Source
start_terminating_all_ws_connections() :: :ok
Link to this function
stats(epool_id)
View Source
stats(Antikythera.ExecutorPool.Id.t()) :: %{optional(:count | :max | :rejected) => non_neg_integer()}