@NotThreadSafe public static final class FileReadHandler.FilePacketReader extends Object implements AbstractReadHandler.PacketReader<BlockReadRequest>
AbstractReadHandler.PacketReader.Factory<T extends ReadRequest,P extends AbstractReadHandler.PacketReader<T>>
Modifier and Type | Method and Description |
---|---|
void |
close() |
DataBuffer |
getDataBuffer(io.netty.channel.Channel channel,
long offset,
int len)
Returns the appropriate
DataBuffer representing the data to send, depending on the
configurable transfer type. |
public DataBuffer getDataBuffer(io.netty.channel.Channel channel, long offset, int len) throws Exception
AbstractReadHandler.PacketReader
DataBuffer
representing the data to send, depending on the
configurable transfer type.getDataBuffer
in interface AbstractReadHandler.PacketReader<BlockReadRequest>
channel
- the netty channeloffset
- offsetlen
- The length, in bytes, of the data to read from the blockDataBuffer
representing the dataException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.