|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.spy.memcached.protocol.binary.BinaryOperationFactory
public class BinaryOperationFactory
Factory for binary operations.
| Constructor Summary | |
|---|---|
BinaryOperationFactory()
|
|
| 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 cb)
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 cb)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryOperationFactory()
| Method Detail |
|---|
public DeleteOperation delete(java.lang.String key,
OperationCallback operationCallback)
OperationFactory
delete in interface OperationFactorykey - the key to deleteoperationCallback - the status callback
public FlushOperation flush(int delay,
OperationCallback cb)
OperationFactory
flush in interface OperationFactorydelay - delay until flush.cb - the status callback
public GetOperation get(java.lang.String key,
GetOperation.Callback callback)
OperationFactory
get in interface OperationFactorykey - the key to getcallback - the callback that will contain the results
public GetOperation get(java.util.Collection<java.lang.String> value,
GetOperation.Callback cb)
OperationFactory
get in interface OperationFactory
public GetsOperation gets(java.lang.String key,
GetsOperation.Callback cb)
OperationFactory
gets in interface OperationFactorykey - the key to getcb - the callback that will contain the results
public MutatatorOperation mutate(Mutator m,
java.lang.String key,
int by,
long def,
int exp,
OperationCallback cb)
OperationFactory
mutate in interface OperationFactorym - 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
public StatsOperation stats(java.lang.String arg,
StatsOperation.Callback cb)
OperationFactory
stats in interface OperationFactoryarg - the stat parameter (see protocol docs)cb - the stats callback
public StoreOperation store(StoreType storeType,
java.lang.String key,
int flags,
int exp,
byte[] data,
OperationCallback cb)
OperationFactory
store in interface OperationFactorystoreType - the type of store operationkey - the key to storeflags - the storage flagsexp - the expiration timedata - the datacb - the status callback
public VersionOperation version(OperationCallback cb)
OperationFactory
version in interface OperationFactorypublic NoopOperation noop(OperationCallback cb)
OperationFactory
noop in interface OperationFactorycb - the operation callback
public CASOperation cas(java.lang.String key,
long casId,
int flags,
byte[] data,
OperationCallback cb)
OperationFactory
cas in interface OperationFactorykey - the key to storecasId - the CAS identifier value (from a gets operation)flags - the storage flagsdata - the datacb - the status callback
public ConcatenationOperation cat(ConcatenationType catType,
long casId,
java.lang.String key,
byte[] data,
OperationCallback cb)
OperationFactory
cat in interface OperationFactorycatType - the type of concatenation to perform.casId - the CAS value for an atomic compare-and-catkey - the keydata - the data to storecb - a callback for reporting the status
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||