public class ConnectorPoolManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConnectorPoolManager.ConnectorPoolKey |
Constructor and Description |
---|
ConnectorPoolManager() |
Modifier and Type | Method and Description |
---|---|
static void |
dispose(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey)
Disposes of all connector instances of a particular connector.
|
static Pair<ConnectorPoolManager.ConnectorPoolKey,ObjectPool<PoolableConnector>> |
getPool(APIConfigurationImpl impl,
LocalConnectorInfoImpl localInfo)
Get a object pool for this connector if it supports connector pooling.
|
static ObjectPool<PoolableConnector> |
getPool(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey)
Get a object pool for this connector if it was created before.
|
static void |
shutdown()
Shuts down the connector pool.
|
public static Pair<ConnectorPoolManager.ConnectorPoolKey,ObjectPool<PoolableConnector>> getPool(APIConfigurationImpl impl, LocalConnectorInfoImpl localInfo)
public static ObjectPool<PoolableConnector> getPool(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey)
public static void dispose(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey)
public static void shutdown()
Copyright © 2022. All rights reserved.