Class CASOperationImpl

    • Field Detail

      • key

        private final java.lang.String key
      • casValue

        private final long casValue
      • flags

        private final int flags
      • exp

        private final int exp
      • data

        private final byte[] data
    • Constructor Detail

      • CASOperationImpl

        public CASOperationImpl​(java.lang.String k,
                                long c,
                                int f,
                                int e,
                                byte[] d,
                                OperationCallback cb)
    • Method Detail

      • getKeys

        public java.util.Collection<java.lang.String> getKeys()
        Description copied from interface: KeyedOperation
        Get the keys requested in this GetOperation.
        Specified by:
        getKeys in interface KeyedOperation
      • getData

        public byte[] getData()
        Description copied from interface: CASOperation
        Get the bytes to be set during this operation.

        Note, this returns an exact reference to the bytes and the data must not be modified.

        Specified by:
        getData in interface CASOperation
      • getCasValue

        public long getCasValue()
        Description copied from interface: CASOperation
        Get the CAS value advised for this operation.
        Specified by:
        getCasValue in interface CASOperation
      • getExpiration

        public int getExpiration()
        Description copied from interface: CASOperation
        Get the expiration to be set for this operation.
        Specified by:
        getExpiration in interface CASOperation
      • getFlags

        public int getFlags()
        Description copied from interface: CASOperation
        Get the flags to be set for this operation.
        Specified by:
        getFlags in interface CASOperation
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object