@NotThreadSafe public class BlockWriteRequestContext extends WriteRequestContext<BlockWriteRequest>
mPosToWrite
Modifier | Constructor and Description |
---|---|
protected |
BlockWriteRequestContext(Protocol.WriteRequest request,
long bytesReserved) |
Modifier and Type | Method and Description |
---|---|
BlockWriter |
getBlockWriter() |
long |
getBytesReserved() |
void |
setBlockWriter(BlockWriter blockWriter) |
void |
setBytesReserved(long bytesReserved) |
getCounter, getError, getPackets, getPosToQueue, getPosToWrite, getRequest, isDoneUnsafe, isPacketWriterActive, setCounter, setDoneUnsafe, setError, setPacketWriterActive, setPosToQueue, setPosToWrite
protected BlockWriteRequestContext(Protocol.WriteRequest request, long bytesReserved)
@Nullable public BlockWriter getBlockWriter()
public long getBytesReserved()
public void setBlockWriter(BlockWriter blockWriter)
blockWriter
- block writer to setpublic void setBytesReserved(long bytesReserved)
bytesReserved
- the bytes reserved to setCopyright © 2023. All Rights Reserved.