org.mule.modules.ftpclient.generated.pooling.DevkitGenericKeyedObjectPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ftp-client-connector Show documentation
Show all versions of ftp-client-connector Show documentation
A Mule connector for ftp/sftp.
package org.mule.modules.ftpclient.generated.pooling;
import javax.annotation.Generated;
import org.apache.commons.pool.impl.GenericKeyedObjectPool;
@SuppressWarnings("all")
@Generated(value = "Mule DevKit Version 3.9.0", date = "2018-04-30T04:51:01+02:00", comments = "Build UNNAMED.2793.f49b6c7")
public class DevkitGenericKeyedObjectPool
extends GenericKeyedObjectPool
{
public DevkitGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory factory, org.mule.config.PoolingProfile connectionPoolingProfile) {
super(factory,toConfig(connectionPoolingProfile));
}
private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) {
org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config();
if (connectionPoolingProfile!= null) {
config.maxIdle = connectionPoolingProfile.getMaxIdle();
config.maxActive = connectionPoolingProfile.getMaxActive();
config.maxWait = connectionPoolingProfile.getMaxWait();
config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
}
return config;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy