View Source PulsarEx.Connection.LookupCallback behaviour (PulsarEx v0.14.0)

Summary

Callbacks

Link to this callback

lookup_topic(conn, topic_name, authoritative, deadline)

View Source
@callback lookup_topic(
  conn :: pid(),
  topic_name :: String.t(),
  authoritative :: boolean(),
  deadline :: integer()
) :: {:connect, String.t()} | {:redirect, String.t()} | {:error, term()}
Link to this callback

lookup_topic_partitions(conn, topic_name, deadline)

View Source
@callback lookup_topic_partitions(
  conn :: pid(),
  topic_name :: String.t(),
  deadline :: integer()
) :: {:ok, integer()} | {:error, term()}