T
- type of read requestpublic static interface AbstractReadHandler.PacketReader<T extends ReadRequest> extends Closeable
Modifier and Type | Interface and Description |
---|---|
static interface |
AbstractReadHandler.PacketReader.Factory<T extends ReadRequest,P extends AbstractReadHandler.PacketReader<T>>
Factory that creates a PacketReader.
|
Modifier and Type | Method and Description |
---|---|
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. |
DataBuffer getDataBuffer(io.netty.channel.Channel channel, long offset, int len) throws Exception
DataBuffer
representing the data to send, depending on the
configurable transfer type.channel
- the netty channeloffset
- offsetlen
- The length, in bytes, of the data to read from the blockDataBuffer
representing the dataException
Copyright © 2023. All Rights Reserved.