Interface CASOperation<T>
public interface CASOperation<T>
CAS operation,encapsulate gets and cas commands,and supports retry times.
-
Method Summary
Modifier and TypeMethodDescriptionintMax 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
-