Example usage for io.netty.channel ChannelInitializer subclass-usage

List of usage examples for io.netty.channel ChannelInitializer subclass-usage

Introduction

In this page you can find the example usage for io.netty.channel ChannelInitializer subclass-usage.

Usage

From source file com.google.devtools.build.remote.worker.HttpCacheServerInitializer.java

/** The initializer used by the HttpCacheServerHandler. */
public class HttpCacheServerInitializer extends ChannelInitializer<SocketChannel> {

    @Override
    protected void initChannel(SocketChannel ch) {
        ChannelPipeline p = ch.pipeline();

From source file com.googlecode.protobuf.pro.duplex.client.DuplexTcpClientPipelineFactory.java

public class DuplexTcpClientPipelineFactory extends ChannelInitializer<Channel> {

    private static Logger log = LoggerFactory.getLogger(DuplexTcpClientPipelineFactory.class);

    private List<TcpConnectionEventListener> connectionEventListeners = new ArrayList<TcpConnectionEventListener>();

From source file com.googlecode.protobuf.pro.duplex.server.DuplexTcpServerPipelineFactory.java

public class DuplexTcpServerPipelineFactory extends ChannelInitializer<Channel> {

    private static Logger log = LoggerFactory.getLogger(DuplexTcpServerPipelineFactory.class);

    private List<TcpConnectionEventListener> connectionEventListeners = new ArrayList<TcpConnectionEventListener>();

From source file com.grillecube.engine.network.server.ServerNetwork.java

public class ServerNetwork extends ChannelInitializer<SocketChannel> implements Network// ,
// PacketListener<PacketString>
{
    public static final int MAX_NB_THREADS = 4;
    private int _port;

From source file com.grillecube.server.network.ServerNetwork.java

public class ServerNetwork extends ChannelInitializer<SocketChannel> implements INetwork {
    public static final int MAX_NB_THREADS = 4;
    private int port;

    private EventLoopGroup bossgroup;
    private EventLoopGroup workergroup;

From source file com.gw.monitor.alphaenvmonitor.monitor.MonitorClientInitializer.java

public class MonitorClientInitializer extends ChannelInitializer<SocketChannel> {
    private static final StringDecoder DECODER = new StringDecoder();
    private static final StringEncoder ENCODER = new StringEncoder();
    private static final MonitorClientHandler CLIENTHANDLER = new MonitorClientHandler();

    @Override

From source file com.gw.monitor.alphaenvmonitor.monitor.MonitorServerInitializer.java

/**
 * Creates a newly configured {@link ChannelPipeline} for a new channel.
 */
public class MonitorServerInitializer extends ChannelInitializer<SocketChannel> {
    private static final StringDecoder DECODER = new StringDecoder();
    private static final StringEncoder ENCODER = new StringEncoder();

From source file com.gw.monitor.alphaenvmonitor.monitor.StatusCollectorInitializer.java

/**
 * Creates a newly configured {@link ChannelPipeline} for a new channel.
 */
public class StatusCollectorInitializer extends ChannelInitializer<SocketChannel> {
    private static final StringDecoder DECODER = new StringDecoder();
    private static final StringEncoder ENCODER = new StringEncoder();

From source file com.gw.services.client.HttpsClientInitializer.java

public class HttpsClientInitializer extends ChannelInitializer<SocketChannel> {

    private final SSLContext sslCtx;

    public HttpsClientInitializer(SSLContext sslCtx) {
        this.sslCtx = sslCtx;

From source file com.gxkj.demo.netty.proxy.HexDumpProxyInitializer.java

public class HexDumpProxyInitializer extends ChannelInitializer<SocketChannel> {

    private final String remoteHost;
    private final int remotePort;

    public HexDumpProxyInitializer(String remoteHost, int remotePort) {