net.spy.memcached.ops
Interface CASOperation

All Superinterfaces:
KeyedOperation, Operation

public interface CASOperation
extends KeyedOperation

Operation that represents compare-and-swap.


Method Summary
 byte[] getBytes()
          Get the bytes to be set during this operation.
 long getCasValue()
          Get the CAS value advised for this operation.
 int getExpiration()
          Get the expiration to be set for this operation.
 int getFlags()
          Get the flags to be set for this operation.
 StoreType getStoreType()
          Get the type of storage used by this CASOperation.
 
Methods inherited from interface net.spy.memcached.ops.KeyedOperation
getKeys
 
Methods inherited from interface net.spy.memcached.ops.Operation
cancel, getBuffer, getCallback, getException, getHandlingNode, getState, handleRead, hasErrored, initialize, isCancelled, readFromBuffer, setHandlingNode, writeComplete
 

Method Detail

getStoreType

StoreType getStoreType()
Get the type of storage used by this CASOperation.


getCasValue

long getCasValue()
Get the CAS value advised for this operation.


getFlags

int getFlags()
Get the flags to be set for this operation.


getExpiration

int getExpiration()
Get the expiration to be set for this operation.


getBytes

byte[] getBytes()
Get the bytes to be set during this operation.

Note, this returns an exact reference to the bytes and the data must not be modified.