BroadwayRedis v0.3.0 BroadwayRedis.RedisClient behaviour View Source

A generic behaviour to implement Redis Clients for BroadwayRedis.Producer.

This module defines callbacks to normalize options and receive items from a Redis list.

Modules that implement this behaviour should be passed as the :redis_client option from BroadwayRedis.Producer.

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Link to this callback

init(opts) View Source
init(opts :: any()) ::
  {:ok, normalized_opts :: any()} | {:error, message :: binary()}

Link to this callback

receive_messages(demand, opts) View Source
receive_messages(demand :: pos_integer(), opts :: any()) :: messages()