use of org.mule.runtime.api.connection.PoolingConnectionProvider in project mule by mulesoft.
the class ConnectionManagementStrategyFactory method getManagementType.
private <C> ConnectionManagementType getManagementType(ConnectionProvider<C> connectionProvider) {
ConnectionManagementType type = NONE;
connectionProvider = unwrapProviderWrapper(connectionProvider);
if (connectionProvider instanceof PoolingConnectionProvider) {
type = POOLING;
} else if (connectionProvider instanceof CachedConnectionProvider) {
type = CACHED;
}
return type;
}
Aggregations