Class TransactionEntry<K,​V>


  • public class TransactionEntry<K,​V>
    extends Object
    An entry in the TransactionContext.

    It represents a single key and contains its initial version (if it was read) and the most up-to-date value (can be null if the key was removed).

    Since:
    14.0
    • Method Detail

      • nonExistingEntry

        public static <K,​V> TransactionEntry<K,​V> nonExistingEntry​(K key)
      • notReadEntry

        public static <K,​V> TransactionEntry<K,​V> notReadEntry​(K key)
      • getVersion

        public long getVersion()
      • getValue

        public V getValue()
      • isModified

        public boolean isModified()
      • isNonExists

        public boolean isNonExists()
      • exists

        public boolean exists()
      • set

        public void set​(org.infinispan.api.common.CacheEntry<K,​V> entry)
      • remove

        public void remove()