honeydew v1.1.0 Honeydew.PollQueue behaviour View Source

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Link to this callback cancel(job, private) View Source
cancel(job(), private()) ::
  {:ok | {:error, :in_progress | :not_found}, private()}
Link to this callback handle_info(msg, state) View Source
handle_info(msg :: :timeout | term(), state :: private()) ::
  {:noreply, new_state}
  | {:noreply, new_state, timeout() | :hibernate}
  | {:stop, reason :: term(), new_state}
when new_state: private()
Link to this callback init(name, arg) View Source
init(name(), arg :: any()) :: {:ok, private()}
Link to this callback nack(job, private) View Source
nack(job(), private()) :: private()
Link to this callback reserve(private) View Source
reserve(private()) :: {job(), private()}
Link to this callback status(private) View Source
status(private()) :: %{
  :count => number(),
  :in_progress => number(),
  optional(atom()) => any()
}