List of usage examples for org.apache.commons.pool PoolableObjectFactory interface-usage
From source file org.bml.util.errorconsumer.ParseErrorWorkerThreadObjectFactory.java
/** An implementation of an ObjectFactory<ParseErrorWorkerThread> for the ParseError * handler. * @author BML */ public class ParseErrorWorkerThreadObjectFactory implements PoolableObjectFactory<ParseErrorWorkerThread> {
From source file org.datacleaner.util.ws.ConnectionPoolObjectFactory.java
/**
* Very simple implementation of {@link PoolableObjectFactory}. Since the
* connection pool in {@link OldServiceSession} does not really need to use the
* objects for anything, except restricting the amount of active connections, we
* simply create unique integers as pool objects.
*/
From source file org.paxle.core.threading.impl.WorkerFactoryWrapper.java
/** * Wraps a {@link IWorkerFactory} into a {@link PoolableObjectFactory} * which is required by Apache commons pool. */ public class WorkerFactoryWrapper<Data, E extends IWorker<Data>> implements PoolableObjectFactory { private IPool<Data> pool = null;
From source file org.apache.kylin.rest.adhoc.JdbcConnectionFactory.java
@SuppressWarnings("unused") class JdbcConnectionFactory implements PoolableObjectFactory { private final String jdbcUrl; private final String driverClass;
From source file org.apache.kylin.query.adhoc.JdbcConnectionFactory.java
@SuppressWarnings("unused") class JdbcConnectionFactory implements PoolableObjectFactory { private final String jdbcUrl; private final String driverClass;
From source file org.opendedup.sdfs.network.HashClientPoolFactory.java
public class HashClientPoolFactory implements PoolableObjectFactory { private HCServer server; private byte id; public HashClientPoolFactory(HCServer server, byte id) { this.server = server;
From source file com.liferay.portal.cache.memcached.MemcachedClientPoolableObjectFactory.java
/** * @author Michael C. Han */ public class MemcachedClientPoolableObjectFactory implements PoolableObjectFactory { public void activateObject(Object obj) throws Exception {
From source file org.callimachusproject.sql.PoolableDriverConnectionFactory.java
public class PoolableDriverConnectionFactory implements PoolableObjectFactory<PoolableDriverConnection> { private final Logger logger = LoggerFactory.getLogger(PoolableDriverConnectionFactory.class); private final ConnectionFactory factory; private final String validationQuery; private volatile ObjectPool<PoolableDriverConnection> pool = null;
From source file org.cytobank.fcs_files.events.EventArrayPoolableObjectFactory.java
public class EventArrayPoolableObjectFactory implements PoolableObjectFactory<Object> { protected int eventArraySize; public EventArrayPoolableObjectFactory(int eventArraySize) { this.eventArraySize = eventArraySize;
From source file com.flexoodb.pool.ConnectionPoolFactory.java
/**
* implementation responsible for instantiating additional Connection instances.
*
* @author Jayson Yu
* @since 1.0
*/