Class NettyChannelInitializer<A extends ProtocolServerConfiguration>

  • All Implemented Interfaces:
    NettyInitializer
    Direct Known Subclasses:
    RestChannelInitializer

    public class NettyChannelInitializer<A extends ProtocolServerConfiguration>
    extends Object
    implements NettyInitializer
    Pipeline factory for Netty based channels. For each pipeline created, a new decoder is created which means that each incoming connection deals with a unique decoder instance. Since the encoder does not maintain any state, a single encoder instance is shared by all incoming connections, if and only if, the protocol mandates an encoder.
    Since:
    4.1
    Author:
    Galder Zamarreño, Sebastian Łaskawiec
    • Constructor Detail

      • NettyChannelInitializer

        public NettyChannelInitializer​(ProtocolServer<A> server,
                                       NettyTransport transport,
                                       io.netty.channel.ChannelOutboundHandler encoder,
                                       io.netty.channel.ChannelInboundHandler decoder)
    • Method Detail

      • getAlpnConfiguration

        protected io.netty.handler.ssl.ApplicationProtocolConfig getAlpnConfiguration()