You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2022/01/12 00:18:17 UTC

[GitHub] [nifi] exceptionfactory commented on pull request #5560: NIFI-9321 - Updated ListenTCPRecord to use a netty server instead of …

exceptionfactory commented on pull request #5560:
URL: https://github.com/apache/nifi/pull/5560#issuecomment-1010501062


   Netty provides a [ByteBufInputStream](https://netty.io/4.1/api/io/netty/buffer/ByteBufInputStream.html), which could be combined with [SequenceInputStream](https://docs.oracle.com/javase/8/docs/api/java/io/SequenceInputStream.html) and a custom [Enumeration](https://docs.oracle.com/javase/8/docs/api/java/util/Enumeration.html) to pass `ByteBuf` messages received on `channelRead0()`.  The key detail would be the `Enumeration` implementation.  The implementation would need to block on the `hasMoreElements()` method, and eventually return `false` when the Netty channel is closed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org