Class QuicServerCodecBuilder

    • Constructor Detail

      • QuicServerCodecBuilder

        public QuicServerCodecBuilder()
        Creates a new instance.
    • Method Detail

      • option

        public <T> QuicServerCodecBuilder option​(io.netty.channel.ChannelOption<T> option,
                                                 @Nullable
                                                 T value)
        Allow to specify a ChannelOption which is used for the QuicChannel instances once they got created. Use a value of null to remove a previous set ChannelOption.
        Type Parameters:
        T - the type of the value.
        Parameters:
        option - the ChannelOption to apply to the QuicChannel.
        value - the value of the option.
        Returns:
        this instance.
      • attr

        public <T> QuicServerCodecBuilder attr​(io.netty.util.AttributeKey<T> key,
                                               @Nullable
                                               T value)
        Allow to specify an initial attribute of the newly created QuicChannel. If the value is null, the attribute of the specified key is removed.
        Type Parameters:
        T - the type of the value.
        Parameters:
        key - the AttributeKey to apply to the QuicChannel.
        value - the value of the attribute.
        Returns:
        this instance.
      • handler

        public QuicServerCodecBuilder handler​(io.netty.channel.ChannelHandler handler)
        Set the ChannelHandler that is added to the ChannelPipeline of the QuicChannel once created.
        Parameters:
        handler - the ChannelHandler that is added to the QuicChannels ChannelPipeline.
        Returns:
        this instance.
      • streamOption

        public <T> QuicServerCodecBuilder streamOption​(io.netty.channel.ChannelOption<T> option,
                                                       @Nullable
                                                       T value)
        Allow to specify a ChannelOption which is used for the QuicStreamChannel instances once they got created. Use a value of null to remove a previous set ChannelOption.
        Type Parameters:
        T - the type of the value.
        Parameters:
        option - the ChannelOption to apply to the QuicStreamChannels.
        value - the value of the option.
        Returns:
        this instance.
      • streamAttr

        public <T> QuicServerCodecBuilder streamAttr​(io.netty.util.AttributeKey<T> key,
                                                     @Nullable
                                                     T value)
        Allow to specify an initial attribute of the newly created QuicStreamChannel. If the value is null, the attribute of the specified key is removed.
        Type Parameters:
        T - the type of the value.
        Parameters:
        key - the AttributeKey to apply to the QuicStreamChannels.
        value - the value of the attribute.
        Returns:
        this instance.
      • streamHandler

        public QuicServerCodecBuilder streamHandler​(io.netty.channel.ChannelHandler streamHandler)
        Set the ChannelHandler that is added to the ChannelPipeline of the QuicStreamChannel once created.
        Parameters:
        streamHandler - the ChannelHandler that is added to the QuicStreamChannels ChannelPipeline.
        Returns:
        this instance.