Class TransactionEntry<K,V>

java.lang.Object
org.infinispan.hotrod.impl.transaction.entry.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 Details

    • nonExistingEntry

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

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

      public static <K, V> TransactionEntry<K,V> read(K key, MetadataValue<V> value)
    • 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()
    • toModification

      public Modification toModification(Function<K,byte[]> keyMarshaller, Function<V,byte[]> valueMarshaller)
    • toString

      public String toString()
      Overrides:
      toString in class Object