public class NonInterruptibleBlockingBytesChannel extends Object implements ReadableByteChannel
So this is a temporary hack to ensure non-blocking behavior to avoid the memory leak. This should be fine because the underlying stream will be interrupted appropriately and only along full message boundaries, which should be sufficient for our use-cases.
| Constructor and Description |
|---|
NonInterruptibleBlockingBytesChannel(InputStream is) |
public NonInterruptibleBlockingBytesChannel(InputStream is)
public int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2024. All rights reserved.