Sippet v0.6.2 Sippet.Transports.UDP.Pool View Source

This module defines the UDP senders' pool.

The objective is to block the caller case all worker processes are busy in order to keep the system responsive.

Link to this section Summary

Functions

Checks in a worker back to the pool, becoming ready to send another message

Checks out a worker from the pool to send the message

Returns a poolboy child specification for a parent supervisor

Link to this section Functions

Link to this function

check_in(worker) View Source
check_in(pid()) :: :ok

Checks in a worker back to the pool, becoming ready to send another message.

This operation is performed by Sippet.Transports.UDP.Sender.handle_cast/2.

While the calling process is responsible to check out a worker process, the worker process will be responsible to check in itself once it becomes ready for another message.

Link to this function

check_out() View Source
check_out() :: pid()

Checks out a worker from the pool to send the message.

This operation is performed by Sippet.Transports.UDP.Plug.send_message/4.

While the calling process is responsible to check out a worker process, the worker process will be responsible to check in itself once it becomes ready for another message.

Returns a poolboy child specification for a parent supervisor.