Kombu.Pools (Kombu v0.1.0)

Copy Markdown View Source

Connection, Channel, and Producer pools (kombu.pools).

Summary

Functions

Gets or creates a ConnectionPool for conn from the global connections group.

Returns the global pool limit (default 10).

Gets or creates a ProducerPool for conn from the global producers group.

Closes all open resources and clears all global pool groups (kombu.pools.reset).

Updates the global pool limit and resizes all active pools (kombu.pools.set_limit).

Functions

connections(conn)

Gets or creates a ConnectionPool for conn from the global connections group.

get_limit()

@spec get_limit() :: non_neg_integer()

Returns the global pool limit (default 10).

producers(conn)

Gets or creates a ProducerPool for conn from the global producers group.

reset()

@spec reset() :: :ok

Closes all open resources and clears all global pool groups (kombu.pools.reset).

set_limit(limit, opts \\ [])

@spec set_limit(non_neg_integer() | nil, keyword()) :: non_neg_integer()

Updates the global pool limit and resizes all active pools (kombu.pools.set_limit).