|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Operation
Base interface for all operations.
Method Summary | |
---|---|
void |
cancel()
Cancel this operation. |
ByteBuffer |
getBuffer()
Get the write buffer for this operation. |
OperationCallback |
getCallback()
Get the callback for this get operation. |
OperationException |
getException()
Get the exception that occurred (or null if no exception occurred). |
MemcachedNode |
getHandlingNode()
Get the node that should've been handling this operation. |
OperationState |
getState()
Get the current state of this operation. |
void |
handleRead(ByteBuffer data)
Handle a raw data read. |
boolean |
hasErrored()
True if an error occurred while processing this operation. |
void |
initialize()
Initialize this operation. |
boolean |
isCancelled()
Has this operation been cancelled? |
void |
readFromBuffer(ByteBuffer data)
Read data from the given byte buffer and dispatch to the appropriate read mechanism. |
void |
setHandlingNode(MemcachedNode to)
Set a reference to the node that will be/is handling this operation. |
void |
writeComplete()
Invoked after having written all of the bytes from the supplied output buffer. |
Method Detail |
---|
boolean isCancelled()
boolean hasErrored()
OperationException getException()
OperationCallback getCallback()
void cancel()
OperationState getState()
ByteBuffer getBuffer()
void writeComplete()
void initialize()
void readFromBuffer(ByteBuffer data) throws IOException
IOException
void handleRead(ByteBuffer data)
MemcachedNode getHandlingNode()
void setHandlingNode(MemcachedNode to)
to
- a memcached node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |