Neo4j::ConnectionPool
Constructors
new(initial_pool_size : Int32 = 0, max_pool_size : Int32 = 0, max_idle_pool_size : Int32 = 1, checkout_timeout : Time::Span = 5.seconds, retry_attempts : Int32 = 1, retry_delay : Time::Span = 200.milliseconds, &factory : -> Bolt::Connection)
SourceInstance methods
checkout
Sourcecheckout
Sourceselected, is_candidate = pool.checkout_some(candidates)
selected be a resource from the candidates list and is_candidate == true
or selected will be a new resource and is_candidate == false
release(resource : Bolt::Connection) : Nil
Source