public class FileReadHandler extends AbstractReadHandler<BlockReadRequest>
Modifier and Type | Class and Description |
---|---|
static class |
FileReadHandler.FilePacketReader
The packet reader to read from a local block worker.
|
static class |
FileReadHandler.FilePacketReaderFactory
Factory for creating
FileReadHandler.FilePacketReader s. |
AbstractReadHandler.PacketReader<T extends ReadRequest>
Constructor and Description |
---|
FileReadHandler(ExecutorService executorService,
io.netty.channel.Channel channel,
DoraWorker worker,
FileTransferType fileTransferType)
Creates an instance of
FileReadHandler . |
Modifier and Type | Method and Description |
---|---|
protected BlockReadRequest |
createReadRequest(Protocol.ReadRequest request) |
DoraWorker |
getWorker()
Gets worker.
|
acceptMessage, channelRead, channelRegistered, channelUnregistered, exceptionCaught
channelActive, channelInactive, channelReadComplete, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public FileReadHandler(ExecutorService executorService, io.netty.channel.Channel channel, DoraWorker worker, FileTransferType fileTransferType)
FileReadHandler
.executorService
- the executor service to run data readerschannel
- the channel to which this handler is attachedworker
- block workerfileTransferType
- the file transfer typeprotected BlockReadRequest createReadRequest(Protocol.ReadRequest request)
createReadRequest
in class AbstractReadHandler<BlockReadRequest>
request
- the block read requestpublic DoraWorker getWorker()
Copyright © 2023. All Rights Reserved.