Interface CASOperation

All Superinterfaces:
KeyedOperation, Operation
All Known Implementing Classes:
CASOperationImpl, StoreOperationImpl

public interface CASOperation extends KeyedOperation
Operation that represents compare-and-swap.
  • Method Details

    • getStoreType

      StoreType getStoreType()
      Get the type of storage used by this CASOperation.
    • getCasValue

      long getCasValue()
      Get the CAS value advised for this operation.
    • getFlags

      int getFlags()
      Get the flags to be set for this operation.
    • getExpiration

      int getExpiration()
      Get the expiration to be set for this operation.
    • getData

      byte[] getData()
      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.