Module | Moped::Connection::Manager |
In: |
lib/moped/connection/manager.rb
|
This class contains behaviour of connection pools for specific addresses.
@since 2.0.0
MUTEX | = | Mutex.new | Used for synchronization of pools access. | |
POOL_SIZE | = | 5 | The default max size for the connection pool. | |
TIMEOUT | = | 0.5 | The default timeout for getting connections from the queue. |
Shutdown the connection pool for the provided node. In the case of unresolved IP addresses the resolved address would be nil resulting in the same pool for all nodes that did not have IP resolved.
@example Shut down the connection pool.
Manager.shutdown(node)
@param [ Node ] node The node.
@return [ nil ] Always nil.
@since 2.0.3