T
- type of read request@ThreadSafe public class ReadRequestContext<T extends ReadRequest> extends Object
Constructor and Description |
---|
ReadRequestContext(T request) |
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.Counter |
getCounter() |
alluxio.worker.netty.Error |
getError() |
long |
getPosToQueue() |
long |
getPosToWrite() |
T |
getRequest() |
boolean |
isCancel() |
boolean |
isDoneUnsafe() |
boolean |
isEof() |
boolean |
isPacketReaderActive() |
void |
setCancel(boolean cancel) |
void |
setCounter(com.codahale.metrics.Counter counter) |
void |
setDoneUnsafe(boolean done) |
void |
setEof(boolean eof) |
void |
setError(alluxio.worker.netty.Error error) |
void |
setPacketReaderActive(boolean packetReaderActive) |
void |
setPosToQueue(long posToQueue) |
void |
setPosToWrite(long posToWrite) |
public ReadRequestContext(T request)
request
- the read requestpublic T getRequest()
public boolean isPacketReaderActive()
public long getPosToQueue()
public long getPosToWrite()
public boolean isEof()
public boolean isCancel()
@Nullable public alluxio.worker.netty.Error getError()
public boolean isDoneUnsafe()
@Nullable public com.codahale.metrics.Counter getCounter()
public void setPacketReaderActive(boolean packetReaderActive)
packetReaderActive
- packet reader state to setpublic void setPosToQueue(long posToQueue)
posToQueue
- the next position to queue to the netty buffer to setpublic void setPosToWrite(long posToWrite)
posToWrite
- the next pos to write to the channel to setpublic void setEof(boolean eof)
eof
- whether SUCCESS response is repliedpublic void setCancel(boolean cancel)
cancel
- whether the CANCEL request is receivedpublic void setError(alluxio.worker.netty.Error error)
error
- the errorpublic void setDoneUnsafe(boolean done)
done
- whether the SUCCESS or CANCEL response is sentpublic void setCounter(com.codahale.metrics.Counter counter)
counter
- counter to setCopyright © 2023. All Rights Reserved.