Class ProtocolChannelInitializer<C extends io.netty.channel.Channel>

  • Type Parameters:
    C - Channel type
    All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
    Direct Known Subclasses:
    TcpChannelInitializer, UdpChannelInitializer

    public abstract class ProtocolChannelInitializer<C extends io.netty.channel.Channel>
    extends io.netty.channel.ChannelInitializer<C>
    Initializer for protocol channels.
    Author:
    michal.polkorab
    • Constructor Detail

      • ProtocolChannelInitializer

        public ProtocolChannelInitializer()
    • Method Detail

      • setSwitchConnectionHandler

        public void setSwitchConnectionHandler​(SwitchConnectionHandler switchConnectionHandler)
        Sets the SwitchConnectionHandler.
        Parameters:
        switchConnectionHandler - the switchConnectionHandler to set
      • setSwitchIdleTimeout

        public void setSwitchIdleTimeout​(long switchIdleTimeout)
        Sets the switch idle timeout.
        Parameters:
        switchIdleTimeout - the switchIdleTimeout to set
      • setSerializationFactory

        public void setSerializationFactory​(SerializationFactory serializationFactory)
      • setDeserializationFactory

        public void setDeserializationFactory​(DeserializationFactory deserializationFactory)
      • setTlsConfiguration

        public void setTlsConfiguration​(TlsConfiguration tlsConfiguration)
      • getSwitchIdleTimeout

        public long getSwitchIdleTimeout()
      • setUseBarrier

        public void setUseBarrier​(boolean useBarrier)
      • useBarrier

        public boolean useBarrier()
      • setChannelOutboundQueueSize

        public void setChannelOutboundQueueSize​(int channelOutboundQueueSize)
        Sets the channelOutboundQueueSize.
        Parameters:
        channelOutboundQueueSize - the channelOutboundQueueSize
      • getChannelOutboundQueueSize

        public int getChannelOutboundQueueSize()
        Returns the channelOutboundQueueSize.
        Returns:
        channelOutboundQueueSize