Class NettyConnectionReaderImpl

    • Constructor Detail

      • NettyConnectionReaderImpl

        public NettyConnectionReaderImpl​(Supplier<InputChannel> inputChannelProvider)
    • Method Detail

      • readBuffer

        public Optional<Buffer> readBuffer​(int subpartitionId,
                                           int segmentId)
        Description copied from interface: NettyConnectionReader
        Read a buffer from netty connection.
        Specified by:
        readBuffer in interface NettyConnectionReader
        Parameters:
        subpartitionId - the subpartition where the buffer locates.
        segmentId - segment id indicates the id of segment.
        Returns:
        Optional.empty() will be returned if there is no buffer sent from netty connection otherwise a buffer will be returned.