Package net.rubyeye.xmemcached
Interface CASOperation<T>
public interface CASOperation<T>
CAS operation,encapsulate gets and cas commands,and supports retry times.
-
Method Summary
Modifier and TypeMethodDescriptionint
Max retry times,If retry times is great than this value,xmemcached will throw TimeoutExceptiongetNewValue
(long currentCAS, T currentValue) Return the new value which you want to cas
-
Method Details
-
getMaxTries
int getMaxTries()Max retry times,If retry times is great than this value,xmemcached will throw TimeoutException- Returns:
-
getNewValue
Return the new value which you want to cas- Parameters:
currentCAS
-currentValue
-- Returns:
- expected new value
-