Class CASValue<T>

java.lang.Object
net.spy.memcached.CASValue<T>

public class CASValue<T> extends Object
A value with a CAS identifier.
  • Field Details

    • cas

      private final long cas
    • value

      private final T value
  • Constructor Details

    • CASValue

      public CASValue(long c, T v)
      Construct a new CASValue with the given identifer and value.
      Parameters:
      c - the CAS identifier
      v - the value
  • Method Details

    • getCas

      public long getCas()
      Get the CAS identifier.
    • getValue

      public T getValue()
      Get the object value.
    • toString

      public String toString()
      Overrides:
      toString in class Object