OperationFactory Interface Reference

Inherited by AsciiOperationFactory, and BinaryOperationFactory.

List of all members.

Public Member Functions

CASOperation cas (String key, long casId, int flags, byte[] data, OperationCallback cb)
ConcatenationOperation cat (ConcatenationType catType, long casId, String key, byte[] data, OperationCallback cb)
DeleteOperation delete (String key, int when, OperationCallback operationCallback)
FlushOperation flush (int delay, OperationCallback operationCallback)
GetOperation get (Collection< String > value, GetOperation.Callback cb)
GetOperation get (String key, GetOperation.Callback callback)
GetsOperation gets (String key, GetsOperation.Callback callback)
MutatatorOperation mutate (Mutator m, String key, int by, long def, int exp, OperationCallback cb)
StatsOperation stats (String arg, StatsOperation.Callback cb)
StoreOperation store (StoreType storeType, String key, int flags, int exp, byte[] data, OperationCallback cb)
VersionOperation version (OperationCallback cb)

Package Functions

NoopOperation noop (OperationCallback cb)


Detailed Description

Factory that builds operations for protocol handlers.

Member Function Documentation

CASOperation cas ( String  key,
long  casId,
int  flags,
byte[]  data,
OperationCallback  cb 
)

Create a CAS operation.

Parameters:
key the key to store
casId the CAS identifier value (from a gets operation)
flags the storage flags
exp the expiration time
data the data
cb the status callback
Returns:
the new store operation

Implemented in AsciiOperationFactory, and BinaryOperationFactory.

ConcatenationOperation cat ( ConcatenationType  catType,
long  casId,
String  key,
byte[]  data,
OperationCallback  cb 
)

Get a concatenation operation.

Parameters:
catType the type of concatenation to perform.
key the key
casId the CAS value for an atomic compare-and-cat
data the data to store
cb a callback for reporting the status
Returns:
thew new ConcatenationOperation

Implemented in AsciiOperationFactory, and BinaryOperationFactory.

DeleteOperation delete ( String  key,
int  when,
OperationCallback  operationCallback 
)

Create a deletion operation.

Parameters:
key the key to delete
when the locking duration
operationCallback the status callback
Returns:
the new DeleteOperation

Implemented in AsciiOperationFactory, and BinaryOperationFactory.

FlushOperation flush ( int  delay,
OperationCallback  operationCallback 
)

Create a flush operation.

Parameters:
delay delay until flush.
operationCallback the status callback
Returns:
the new FlushOperation

Implemented in AsciiOperationFactory, and BinaryOperationFactory.

GetOperation get ( Collection< String value,
GetOperation.Callback  cb 
)

Create a get operation.

Parameters:
key the collection of keys to get
callback the callback that will contain the results
Returns:
a new GetOperation

Implemented in AsciiOperationFactory.

GetOperation get ( String  key,
GetOperation.Callback  callback 
)

Create a get operation.

Parameters:
key the key to get
callback the callback that will contain the results
Returns:
a new GetOperation

Implemented in AsciiOperationFactory.

GetsOperation gets ( String  key,
GetsOperation.Callback  callback 
)

Create a gets operation.

Parameters:
key the key to get
callback the callback that will contain the results
Returns:
a new GetsOperation

Implemented in AsciiOperationFactory.

MutatatorOperation mutate ( Mutator  m,
String  key,
int  by,
long  def,
int  exp,
OperationCallback  cb 
)

Create a mutator operation.

Parameters:
m the mutator type
key the mutatee key
by the amount to increment or decrement
def the default value
exp expiration in case we need to default (0 if no default)
cb the status callback
Returns:
the new mutator operation

Implemented in AsciiOperationFactory, and BinaryOperationFactory.

NoopOperation noop ( OperationCallback  cb  )  [package]

Create a NOOP operation.

Parameters:
cb the operation callback
Returns:
the new NoopOperation

Implemented in AsciiOperationFactory, and BinaryOperationFactory.

StatsOperation stats ( String  arg,
StatsOperation.Callback  cb 
)

Get a new StatsOperation.

Parameters:
arg the stat parameter (see protocol docs)
cb the stats callback
Returns:
the new StatsOperation

Implemented in AsciiOperationFactory.

StoreOperation store ( StoreType  storeType,
String  key,
int  flags,
int  exp,
byte[]  data,
OperationCallback  cb 
)

Create a store operation.

Parameters:
storeType the type of store operation
key the key to store
flags the storage flags
exp the expiration time
data the data
cb the status callback
Returns:
the new store operation

Implemented in AsciiOperationFactory, and BinaryOperationFactory.

VersionOperation version ( OperationCallback  cb  ) 

Create a new version operation.

Implemented in AsciiOperationFactory, and BinaryOperationFactory.


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