Class ChunkedMessageInput

  • All Implemented Interfaces:
    io.netty.handler.stream.ChunkedInput<ChunkedMessage>

    public class ChunkedMessageInput
    extends Object
    implements io.netty.handler.stream.ChunkedInput<ChunkedMessage>
    • Constructor Detail

      • ChunkedMessageInput

        public ChunkedMessageInput​(ApplicationMessage msg,
                                   int chunkSize)
        Generates a ChunkedInput for the ChunkedWriteHandler from the given ApplicationMessage.
        Parameters:
        msg - the message that should be sent in chunks
    • Method Detail

      • isEndOfInput

        public boolean isEndOfInput()
        Specified by:
        isEndOfInput in interface io.netty.handler.stream.ChunkedInput<ChunkedMessage>
      • close

        public void close()
        Specified by:
        close in interface io.netty.handler.stream.ChunkedInput<ChunkedMessage>
      • readChunk

        public ChunkedMessage readChunk​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        readChunk in interface io.netty.handler.stream.ChunkedInput<ChunkedMessage>
      • readChunk

        public ChunkedMessage readChunk​(io.netty.buffer.ByteBufAllocator allocator)
        Specified by:
        readChunk in interface io.netty.handler.stream.ChunkedInput<ChunkedMessage>
      • length

        public long length()
        Specified by:
        length in interface io.netty.handler.stream.ChunkedInput<ChunkedMessage>
      • progress

        public long progress()
        Specified by:
        progress in interface io.netty.handler.stream.ChunkedInput<ChunkedMessage>