public abstract class OperationImpl extends BaseOperationImpl implements Operation
CANCELLED, TIMED_OUT| Modifier and Type | Method and Description |
|---|---|
byte[] |
getErrorMsg()
Returns the raw bytes of the error message content.
|
void |
readFromBuffer(java.nio.ByteBuffer buffer)
Read from the incoming
ByteBuffer. |
java.lang.String |
toString() |
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, initialize, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setCloneCount, setHandlingNode, timeOut, writeComplete, writingequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, initialize, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setCloneCount, setHandlingNode, timeOut, writeComplete, writingpublic void readFromBuffer(java.nio.ByteBuffer buffer)
throws java.io.IOException
ByteBuffer.
Reading from the buffer is done in stages, depending on how much data
can be read at once. First, the header is read and then parsed (24
bytes, indicated by MIN_RECV_PACKET). Then, the payload is read
(if one is available for this operation and can be loaded fully).readFromBuffer in interface OperationreadFromBuffer in class BaseOperationImplbuffer - the buffer to read from.java.io.IOException - if an error happened during parsing/reading.public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] getErrorMsg()
OperationgetErrorMsg in interface Operation