db_connection v1.0.0-rc.0 DBConnection.Sojourn
A DBConnection.Pool using sbroker.
Options
:pool_size- The number of connections (default:10):pool_overflow- The number of extra connections that can be created if required (default:0):broker- The:sbrokercallback module (see:sbroker, default:DBConnection.Sojourn.Broker):broker_start_opt- Start options for the broker (see:sbroker, default:[]):regulator- The:sregulatorcallback module (see:sregulator, default:DBConnection.Sojourn.Regulator):regulator_start_opt- Start options for the regulator (see:sregulator, default;[]):max_restarts- the maximum amount of connection restarts allowed in a time frame (default3):max_seconds- the time frame in which:max_restartsapplies (default5):shutdown- the shutdown strategy for connections (default5_000)
All options are passed as the argument to the sbroker callback module. This
pool overrides :idle to always be :passive and may not honour
:idle_timeout if it tries to prevent the connection queue becoming too short
or spreads out pings evenly.