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

com.github.yingzhuo.fastdfs.springboot.domain.conn.ConnectionPool Maven / Gradle / Ivy

The newest version!
package com.github.yingzhuo.fastdfs.springboot.domain.conn;

import com.github.yingzhuo.fastdfs.springboot.properties.PoolProperties;
import org.apache.commons.pool2.impl.GenericKeyedObjectPool;
import org.springframework.beans.factory.DisposableBean;

import java.net.InetSocketAddress;

/**
 * 连接池
 *
 * @author tobato
 * @author 应卓
 */
public class ConnectionPool extends GenericKeyedObjectPool implements DisposableBean {

    public ConnectionPool(ConnectionFactory factory, PoolProperties config) {
        super(factory, config);
    }

    @Override
    public void destroy() {
        this.close();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy