Operation Interface Reference

Inherited by CASOperation, ConcatenationOperation, DeleteOperation, FlushOperation, GetOperation, GetsOperation, MutatatorOperation, NoopOperation, StatsOperation, StoreOperation, VersionOperation, and OperationImpl.

List of all members.

Public Member Functions

void cancel ()
ByteBuffer getBuffer ()
OperationCallback getCallback ()
OperationException getException ()
OperationState getState ()
void handleRead (ByteBuffer data)
boolean hasErrored ()
void initialize ()
void readFromBuffer (ByteBuffer data) throws IOException
void writeComplete ()

Package Functions

boolean isCancelled ()


Detailed Description

Base interface for all operations.

Member Function Documentation

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).

OperationState getState (  ) 

Get the current state of this operation.

void handleRead ( ByteBuffer  data  ) 

Handle a raw data read.

Implemented in BaseGetOpImpl.

boolean hasErrored (  ) 

True if an error occurred while processing this operation.

void initialize (  ) 

boolean isCancelled (  )  [package]

Has this operation been cancelled?

void readFromBuffer ( ByteBuffer  data  )  throws IOException

Read data from the given byte buffer and dispatch to the appropriate read mechanism.

Implemented in OperationImpl.

void writeComplete (  ) 

Invoked after having written all of the bytes from the supplied output buffer.


The documentation for this interface was generated from the following file:

Generated on Sat May 26 06:43:37 2012 for Project Wonder by  doxygen 1.5.8