class

Logarithm::LogSourcePool

Inherits Reference < Object

Connection pooling for log sources.

This class manages a pool of connections to log sources to improve performance and resource utilization.

Example usage:

pool = LogSourcePool.new(max_connections: 10)

pool.with_connection do |connection|
  logs = connection.fetch_logs
end

Constructors

new(max_connections : Int32 = 10)
Source

Instance methods

max_connections
Source
stats

Get pool statistics.

Source
with_connection

Execute a block with a connection from the pool.

Source