|
|||||||||
| 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. |
java.nio.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). |
OperationState |
getState()
Get the current state of this operation. |
void |
handleRead(java.nio.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(java.nio.ByteBuffer data)
Read data from the given byte buffer and dispatch to the appropriate read mechanism. |
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()
java.nio.ByteBuffer getBuffer()
void writeComplete()
void initialize()
void readFromBuffer(java.nio.ByteBuffer data)
throws java.io.IOException
java.io.IOExceptionvoid handleRead(java.nio.ByteBuffer data)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||