public class UfsFileWriteHandler.UfsFilePacketWriter extends Object
Constructor and Description |
---|
UfsFilePacketWriter(UfsFileWriteRequestContext context,
io.netty.channel.Channel channel,
UfsManager ufsManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelRequest(UfsFileWriteRequestContext context)
Cancels this write.
|
protected void |
cleanupRequest(UfsFileWriteRequestContext context)
Cleans up this write.
|
protected void |
completeRequest(UfsFileWriteRequestContext context,
io.netty.channel.Channel channel)
Completes this write.
|
protected void |
writeBuf(UfsFileWriteRequestContext context,
io.netty.channel.Channel channel,
io.netty.buffer.ByteBuf buf,
long pos)
Writes the buffer.
|
public UfsFilePacketWriter(UfsFileWriteRequestContext context, io.netty.channel.Channel channel, UfsManager ufsManager)
context
- context of this packet writerchannel
- netty channelufsManager
- UFS managerprotected void completeRequest(UfsFileWriteRequestContext context, io.netty.channel.Channel channel) throws Exception
context
- context of the request to completechannel
- netty channelException
protected void cancelRequest(UfsFileWriteRequestContext context) throws Exception
context
- context of the request to completeException
protected void cleanupRequest(UfsFileWriteRequestContext context) throws Exception
context
- context of the request to completeException
protected void writeBuf(UfsFileWriteRequestContext context, io.netty.channel.Channel channel, io.netty.buffer.ByteBuf buf, long pos) throws Exception
context
- context of the request to completechannel
- the netty channelbuf
- the bufferpos
- the posException
Copyright © 2023. All Rights Reserved.