subscribex v0.10.0-rc.0 Subscribex.Publisher.Pool

Summary

Types

broker :: module
connection_name :: atom
count :: non_neg_integer
reason :: term

Functions

add(broker, pid)

Specs

add(broker, pid) :: :ok | {:error, reason}
child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

random_publisher(broker)

Specs

random_publisher(broker) ::
  {:ok, Subscribex.Broker.channel} |
  {:error, term}
start_link(broker, count, connection_name)