off_broadway_beanstalkd v0.1.0 OffBroadwayBeanstalkd.BeanstalkdClient behaviour

A generic behaviour to implement Beanstalkd Clients for OffBroadwayBeanstalkd.Producer. This module defines callbacks to normalize options and receive message from a SQS queue. Modules that implement this behaviour should be passed as the :beanstalkd_client option from OffBroadwayBeanstalkd.Producer.

Link to this section Summary

Link to this section Types

Specs

messages() :: [Broadway.Message.t()]

Link to this section Callbacks

Specs

init(opts :: any()) ::
  {:ok, normalized_opts :: any()} | {:error, reason :: binary()}
Link to this callback

receive_messages(demand, opts)

Specs

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