Selectorsedit

The connection pool maintains the list of connections, and decides when nodes should transition from alive to dead (and vice versa). It has no logic to choose connections, however. That job belongs to the Selector class.

The selector’s job is to return a single connection from a provided array of connections. Like the Connection Pool, there are several implementations to choose from.