Class NettyConnectionReaderImpl

    • Constructor Detail

      • NettyConnectionReaderImpl

        public NettyConnectionReaderImpl​(java.util.function.Supplier<InputChannel> inputChannelProvider)
    • Method Detail

      • readBuffer

        public Optional<Buffer> readBuffer​(int segmentId)
        Description copied from interface: NettyConnectionReader
        Read a buffer from netty connection.
        Specified by:
        readBuffer in interface NettyConnectionReader
        Parameters:
        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.