Interface CASOperation<T>


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getMaxTries()
      Max retry times,If retry times is great than this value,xmemcached will throw TimeoutException
      T getNewValue​(long currentCAS, T currentValue)
      Return the new value which you want to cas
    • Method Detail

      • 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