Module Moped::Connection::Manager
In: lib/moped/connection/manager.rb

This class contains behaviour of connection pools for specific addresses.

@since 2.0.0

Methods

delete_pool   pool   shutdown  

Constants

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.

Public Instance methods

Get a connection pool for the provided node.

@example Get a connection pool for the node.

  Manager.pool(node)

@param [ Node ] The node.

@return [ Pool ] The connection pool for the Node.

@since 2.0.0

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

[Validate]