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.splicemachine.stream.handlers.OpenHandler.java

/**
 * We are using Kryo for serialization message between spark and the Olap Server.
 * This handler is going to simply take the current pipeline and add 2 standard channels
 * to encode a kryo object and decode a kryo object.
 * Also it is going to add the main channel handler in the pipleline
 * @see com.splicemachine.stream.StreamListenerServer

From source file com.spotify.heroic.rpc.nativerpc.NativeRpcClientSession.java

@Slf4j
@RequiredArgsConstructor
public class NativeRpcClientSession<R> extends ChannelInitializer<Channel> {
    private final ObjectMapper mapper;
    private final Timer timer;
    private final long heartbeatInterval;

From source file com.spotify.heroic.rpc.nativerpc.NativeRpcClientSessionInitializer.java

@Slf4j
@RequiredArgsConstructor
public class NativeRpcClientSessionInitializer<R> extends ChannelInitializer<Channel> {
    private final ObjectMapper mapper;
    private final Timer timer;
    private final long heartbeatInterval;

From source file com.spotify.heroic.rpc.nativerpc.NativeRpcServerSession.java

@Slf4j
@RequiredArgsConstructor
public class NativeRpcServerSession extends ChannelInitializer<SocketChannel> {
    private static final Charset UTF8 = Charset.forName("UTF-8");

    private final Timer timer;

From source file com.spotify.heroic.rpc.nativerpc.NativeRpcServerSessionInitializer.java

@Slf4j
@RequiredArgsConstructor
public class NativeRpcServerSessionInitializer extends ChannelInitializer<SocketChannel> {
    private static final Charset UTF8 = Charset.forName("UTF-8");

    private final Timer timer;

From source file com.springapp.mvc.netty.example.factorial.FactorialClientInitializer.java

/**
 * Creates a newly configured {@link io.netty.channel.ChannelPipeline} for a client-side channel.
 */
public class FactorialClientInitializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

From source file com.springapp.mvc.netty.example.factorial.FactorialServerInitializer.java

/**
 * Creates a newly configured {@link io.netty.channel.ChannelPipeline} for a server-side channel.
 */
public class FactorialServerInitializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

From source file com.springapp.mvc.netty.example.http.cors.HttpCorsServerInitializer.java

/**
 * Please refer to the {@link CorsConfig} javadocs for information about all the
 * configuration options available.
 *
 * Below are some of configuration discussed in this example:
 * <h3>Support only a specific origin</h3>

From source file com.springapp.mvc.netty.example.http.file.HttpStaticFileServerInitializer.java

public class HttpStaticFileServerInitializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

    public HttpStaticFileServerInitializer(SslContext sslCtx) {
        this.sslCtx = sslCtx;

From source file com.springapp.mvc.netty.example.http.helloworld.HttpHelloWorldServerInitializer.java

public class HttpHelloWorldServerInitializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

    public HttpHelloWorldServerInitializer(SslContext sslCtx) {
        this.sslCtx = sslCtx;