Honeydew.Queue behaviour (honeydew v1.5.0) View Source

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

cancel(queue_process, job)

View Source

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

child_spec(name(), [any()]) :: Supervisor.child_spec()
Link to this function

do_worker_not_ready(worker, state)

View Source
Link to this function

do_worker_ready(worker, state)

View Source
Link to this function

enqueue(queue_process, job)

View Source
Link to this function

filter(queue_process, filter)

View Source
Link to this function

job_monitor_crashed(job_monitor, reason, state)

View Source
Link to this function

job_monitor_stopped(job_monitor, state)

View Source
Link to this function

nack(queue_process, job)

View Source
Link to this function

status(queue_process, opts)

View Source
Link to this function

worker_crashed(worker, reason, state)

View Source
Link to this function

worker_not_ready(queue_process)

View Source
Link to this function

worker_ready(queue_process)

View Source
Link to this function

worker_stopped(worker, state)

View Source

Link to this section Callbacks

Specs

ack(job(), private()) :: private()

Specs

cancel(job(), private()) ::
  {:ok | {:error, :in_progress | :not_found}, private()}

Specs

enqueue(job(), private()) :: {private(), job()}

Specs

filter(private(), filter()) :: [job()]
Link to this callback

handle_call(request, arg2, state)

View Source (optional)

Specs

handle_call(request :: term(), GenServer.from(), state :: private()) ::
  {:reply, reply, new_state}
  | {:reply, reply, new_state, timeout() | :hibernate}
  | {:noreply, new_state}
  | {:noreply, new_state, timeout() | :hibernate}
  | {:stop, reason, reply, new_state}
  | {:stop, reason, new_state}
when reply: term(), new_state: private(), reason: term()
Link to this callback

handle_cast(request, state)

View Source (optional)

Specs

handle_cast(request :: term(), state :: private()) ::
  {:noreply, new_state}
  | {:noreply, new_state, timeout() | :hibernate}
  | {:stop, reason :: term(), new_state}
when new_state: private()
Link to this callback

handle_info(msg, state)

View Source (optional)

Specs

handle_info(msg :: :timeout | term(), state :: private()) ::
  {:noreply, new_state}
  | {:noreply, new_state, timeout() | :hibernate}
  | {:stop, reason :: term(), new_state}
when new_state: private()

Specs

init(name(), args()) :: {:ok, private()}

Specs

nack(job(), private()) :: private()

Specs

reserve(private()) :: {job(), private()}
Link to this callback

rewrite_opts(args)

View Source (optional)

Specs

rewrite_opts(args()) :: args()

Specs

status(private()) :: %{
  :count => number(),
  :in_progress => number(),
  optional(atom()) => any()
}

Specs

validate_args!(args()) :: :ok