Search in sources :

Example 1 with PoolingConnectionProvider

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;
}
Also used : PoolingConnectionProvider(org.mule.runtime.api.connection.PoolingConnectionProvider) ConnectionManagementType(org.mule.runtime.api.meta.model.connection.ConnectionManagementType) CachedConnectionProvider(org.mule.runtime.api.connection.CachedConnectionProvider)

Aggregations

CachedConnectionProvider (org.mule.runtime.api.connection.CachedConnectionProvider)1 PoolingConnectionProvider (org.mule.runtime.api.connection.PoolingConnectionProvider)1 ConnectionManagementType (org.mule.runtime.api.meta.model.connection.ConnectionManagementType)1