OffBroadway.EMQTT.Broker (off_broadway_emqtt v0.2.0)

View Source

The OffBroadway.EMQTT.Broker is started as part of the Broadway pipeline supervision tree and is responsible for managing the connection to the MQTT broker and cache incoming messages until the producer is ready to consume them.

Summary

Functions

check_buffer_threshold(buffer_size, arg, ets_table, emqtt)

@spec check_buffer_threshold(
  non_neg_integer(),
  {non_neg_integer(), non_neg_integer()},
  atom(),
  pid()
) ::
  :ok

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

stop_emqtt(pid)

@spec stop_emqtt(pid()) :: :ok

stream_from_buffer(ets_table)

@spec stream_from_buffer(atom()) :: Enumerable.t()

stream_from_buffer_log(buffer_log)

@spec stream_from_buffer_log(atom()) :: Enumerable.t()