|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OperationFactory
Factory that builds operations for protocol handlers.
| Method Summary | |
|---|---|
CASOperation |
cas(java.lang.String key,
long casId,
int flags,
byte[] data,
OperationCallback cb)
Create a CAS operation. |
ConcatenationOperation |
cat(ConcatenationType catType,
long casId,
java.lang.String key,
byte[] data,
OperationCallback cb)
Get a concatenation operation. |
DeleteOperation |
delete(java.lang.String key,
OperationCallback operationCallback)
Create a deletion operation. |
FlushOperation |
flush(int delay,
OperationCallback operationCallback)
Create a flush operation. |
GetOperation |
get(java.util.Collection<java.lang.String> value,
GetOperation.Callback cb)
Create a get operation. |
GetOperation |
get(java.lang.String key,
GetOperation.Callback callback)
Create a get operation. |
GetsOperation |
gets(java.lang.String key,
GetsOperation.Callback callback)
Create a gets operation. |
MutatatorOperation |
mutate(Mutator m,
java.lang.String key,
int by,
long def,
int exp,
OperationCallback cb)
Create a mutator operation. |
NoopOperation |
noop(OperationCallback cb)
Create a NOOP operation. |
StatsOperation |
stats(java.lang.String arg,
StatsOperation.Callback cb)
Get a new StatsOperation. |
StoreOperation |
store(StoreType storeType,
java.lang.String key,
int flags,
int exp,
byte[] data,
OperationCallback cb)
Create a store operation. |
VersionOperation |
version(OperationCallback cb)
Create a new version operation. |
| Method Detail |
|---|
NoopOperation noop(OperationCallback cb)
cb - the operation callback
DeleteOperation delete(java.lang.String key,
OperationCallback operationCallback)
key - the key to deleteoperationCallback - the status callback
FlushOperation flush(int delay,
OperationCallback operationCallback)
delay - delay until flush.operationCallback - the status callback
GetOperation get(java.lang.String key,
GetOperation.Callback callback)
key - the key to getcallback - the callback that will contain the results
GetsOperation gets(java.lang.String key,
GetsOperation.Callback callback)
key - the key to getcallback - the callback that will contain the results
GetOperation get(java.util.Collection<java.lang.String> value,
GetOperation.Callback cb)
key - the collection of keys to getcallback - the callback that will contain the results
MutatatorOperation mutate(Mutator m,
java.lang.String key,
int by,
long def,
int exp,
OperationCallback cb)
m - the mutator typekey - the mutatee keyby - the amount to increment or decrementdef - the default valueexp - expiration in case we need to default (0 if no default)cb - the status callback
StatsOperation stats(java.lang.String arg,
StatsOperation.Callback cb)
arg - the stat parameter (see protocol docs)cb - the stats callback
StoreOperation store(StoreType storeType,
java.lang.String key,
int flags,
int exp,
byte[] data,
OperationCallback cb)
storeType - the type of store operationkey - the key to storeflags - the storage flagsexp - the expiration timedata - the datacb - the status callback
ConcatenationOperation cat(ConcatenationType catType,
long casId,
java.lang.String key,
byte[] data,
OperationCallback cb)
catType - the type of concatenation to perform.key - the keycasId - the CAS value for an atomic compare-and-catdata - the data to storecb - a callback for reporting the status
CASOperation cas(java.lang.String key,
long casId,
int flags,
byte[] data,
OperationCallback cb)
key - the key to storecasId - the CAS identifier value (from a gets operation)flags - the storage flagsexp - the expiration timedata - the datacb - the status callback
VersionOperation version(OperationCallback cb)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||