PersQueue v0.0.1 PersQueue.ServerSupervisor View Source
This Supervisor is responsible for spawning a PersQueue.Server
for each consumer.
Link to this section Summary
Functions
Resends ack task to server
Resends add task to server. If the server for the consumer is running, add message to it. If not, spawn a new server first and then add it
Resends get task to server
Resends reject task to server
Starts the supervision tree
Starts a PersQueue.Server
for the given consumer
Link to this section Functions
Link to this function
ack(consumer, message_id)
View Source
ack(consumer :: String.t(), message_id :: pos_integer()) :: :ok
Resends ack task to server.
Resends add task to server. If the server for the consumer is running, add message to it. If not, spawn a new server first and then add it.
Resends get task to server.
Link to this function
reject(consumer, message_id)
View Source
reject(consumer :: String.t(), message_id :: pos_integer()) :: :ok
Resends reject task to server.
Starts the supervision tree
Link to this function
start_server(consumer)
View Source
start_server(consumer :: String.t()) :: Supervisor.on_start_child() | no_return()
Starts a PersQueue.Server
for the given consumer