All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.luhuiguo.fastdfs.conn.FdfsConnectionPool Maven / Gradle / Ivy

The newest version!
package com.luhuiguo.fastdfs.conn;

import java.net.InetSocketAddress;

import org.apache.commons.pool2.KeyedPooledObjectFactory;
import org.apache.commons.pool2.impl.GenericKeyedObjectPool;
import org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig;

/**
 * 定义Fdfs连接池对象
 * 
 * 
 * 定义了对象池要实现的功能,对一个地址进行池化Map Pool
 * 
* * @author luhuiguo * */ public class FdfsConnectionPool extends GenericKeyedObjectPool { public FdfsConnectionPool(KeyedPooledObjectFactory factory, GenericKeyedObjectPoolConfig config) { super(factory, config); } public FdfsConnectionPool(KeyedPooledObjectFactory factory) { super(factory, new ConnectionPoolConfig()); } public FdfsConnectionPool() { super(new PooledConnectionFactory(), new ConnectionPoolConfig()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy