Package org.tarantool.pool

Source Code of org.tarantool.pool.SocketChannelPooledConnectionFactory

package org.tarantool.pool;

import org.tarantool.core.TarantoolConnection;
import org.tarantool.core.impl.SocketChannelTarantoolConnection;

public class SocketChannelPooledConnectionFactory extends AbstractSocketChannelPooledConnectionFactory<TarantoolConnection> {
    public SocketChannelPooledConnectionFactory(String host, int port, int minPoolSize, int maxPoolSize) {
        super(host, port, minPoolSize, maxPoolSize);
    }

    public SocketChannelPooledConnectionFactory(int minPoolSize, int maxPoolSize) {
        super(minPoolSize, maxPoolSize);
    }

    public SocketChannelPooledConnectionFactory() {
    }

    @Override
    public TarantoolConnection newUnpooledConnection() {
        return new SocketChannelTarantoolConnection(host, port);
    }
}
TOP

Related Classes of org.tarantool.pool.SocketChannelPooledConnectionFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.