public class ConfigAwareConnectionPool extends Object
ConnectionPool. This class is aware of network
configuration change events: When the network configuration changes the pool object is discarded
and a later calls to get() will return a new pool.| Modifier | Constructor and Description |
|---|---|
protected |
ConfigAwareConnectionPool(NetworkEventDispatcher networkEventDispatcher)
Visible for testing.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionPool |
get()
Returns the current
ConnectionPool to use. |
static ConfigAwareConnectionPool |
getInstance() |
protected ConfigAwareConnectionPool(NetworkEventDispatcher networkEventDispatcher)
getInstance()public static ConfigAwareConnectionPool getInstance()
public ConnectionPool get()
ConnectionPool to use.