class

AgentPool::AgentPool(T)

Inherits Reference < Object

Constructors

new(max_pool_size : Int32 = 0, max_idle_pool_size : Int32 = 1, checkout_timeout : Float64 = 5.0, retry_attempts : Int32 = 1, retry_delay : Float64 = 0.2, idle_ttl : Float64 = 0.0, &factory : String -> T)
Source

Instance methods

checkout(index) : T
Source
checkout
Source
close

close all resources in the pool

Source
evicted_total

cumulative count of agents evicted by the idle reaper

Source
release(resource : T, index : String) : Nil
Source
stats

Returns stats of the pool

Source

Nested types