org.redkalex.socks.SocksContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redkale-plugins Show documentation
Show all versions of redkale-plugins Show documentation
Redkale-Plugins -- java framework
/*
* 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