List of usage examples for org.apache.commons.pool2 BasePooledObjectFactory subclass-usage
From source file hornet.framework.clamav.pool.PooledSocketFactory.java
/** * A factory for creating PooledSocket objects. */ public class PooledSocketFactory extends BasePooledObjectFactory<SocketChannel> { /** Logger de la classe. */
From source file net.uiqui.oblivion.mercury.io.MercuryConnectionFactory.java
public class MercuryConnectionFactory extends BasePooledObjectFactory<MercuryConnection> { private String server = null; private int port = 0; protected MercuryConnectionFactory() { super();
From source file objectpoolbenchmark.suite.commonspool2.MyPooledObjectFactory.java
public class MyPooledObjectFactory extends BasePooledObjectFactory<MyCommons2Object> { @Override public MyCommons2Object create() throws Exception { Costs.expendAllocation(); return new MyCommons2Object();
From source file org.adriss.bucketpool.BucketFactory.java
/**
* A {@link Bucket} implementation of <code>BasePooledObjectFactory</code>.
* <p>
*
* @author JC Carrillo
* @since 0.1
From source file org.apache.gobblin.hive.HiveMetaStoreClientFactory.java
/** * An implementation of {@link BasePooledObjectFactory} for {@link IMetaStoreClient}. */ @Slf4j public class HiveMetaStoreClientFactory extends BasePooledObjectFactory<IMetaStoreClient> {
From source file org.apache.gobblin.kafka.schemareg.HttpClientFactory.java
/** * An implementation of {@link BasePooledObjectFactory} for {@link HttpClient}. * * @author mitu */ public class HttpClientFactory extends BasePooledObjectFactory<HttpClient> {
From source file org.apache.sentry.service.thrift.SentryServiceClientPoolFactory.java
/** * SentryServiceClientPoolFactory is for connection pool to manage the object. Implement the related * method to create object, destroy object and wrap object. */ public class SentryServiceClientPoolFactory extends BasePooledObjectFactory<SentryPolicyServiceClient> {
From source file org.apache.zeppelin.interpreter.remote.ClientFactory.java
/** * */ public class ClientFactory extends BasePooledObjectFactory<Client> { private String host; private int port;
From source file org.cloudgraph.hbase.connect.PooledConnectionFactory.java
/**
* Connection factory which creates pooled connections.
* <p>
* </p>
* The new HBase Client API changes removed the existing connection pool
* implementation and placed the responsibility of managing the lifecycle of
From source file org.cloudgraph.state.StateDataBindingFactory.java
/**
* The data binding class <@link StateNonValidatingDataBinding> is both not thread safe and
* slow on creation due to the underlying JAXP XML Schema parsing, and therefore
* this class provides a factory implementation for the associated binding pool
* in support of concurrent contexts.
*