Class FrameMessageSizeEstimator

  • All Implemented Interfaces:
    io.netty.channel.MessageSizeEstimator

    public final class FrameMessageSizeEstimator
    extends Object
    implements io.netty.channel.MessageSizeEstimator
    A MessageSizeEstimator that sizes the Frame class. This is basically an implementation of netty's default but with that additional feature.
    • Constructor Detail

      • FrameMessageSizeEstimator

        public FrameMessageSizeEstimator​(int unknownSize)
        Create a new instance
        Parameters:
        unknownSize - The size which is returned for unknown messages.
    • Method Detail

      • newHandle

        public io.netty.channel.MessageSizeEstimator.Handle newHandle()
        Specified by:
        newHandle in interface io.netty.channel.MessageSizeEstimator