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

org.redkalex.socks.SocksContext Maven / Gradle / Ivy

There is a newer version: 2.7.7
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.redkalex.socks;

import java.nio.channels.*;
import org.redkale.net.http.*;

/**
 *
 * 详情见: https://redkale.org
 *
 * @author zhangjx
 */
public class SocksContext extends HttpContext {

    protected final AsynchronousChannelGroup group;

    public SocksContext(HttpContextConfig config) {
        super(config);
        AsynchronousChannelGroup g = null;
        try {
            g = AsynchronousChannelGroup.withThreadPool(executor);
        } catch (Exception e) {
            e.printStackTrace();
        }
        this.group = g;
    }

    protected AsynchronousChannelGroup getAsynchronousChannelGroup() {
        return group;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy