Sippet v0.3.1 Sippet.Transports.UDP.Pool

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.

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

Functions

check_in(worker)
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.

check_out()
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.

spec()