Interface CASOperation<T>


public interface CASOperation<T>
CAS operation,encapsulate gets and cas commands,and supports retry times.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Max retry times,If retry times is great than this value,xmemcached will throw TimeoutException
    getNewValue(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

      T getNewValue(long currentCAS, T currentValue)
      Return the new value which you want to cas
      Parameters:
      currentCAS -
      currentValue -
      Returns:
      expected new value