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 theTransactionContext.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()VgetValue()longgetVersion()booleanisModified()booleanisNonExists()static <K,V>
TransactionEntry<K,V>nonExistingEntry(K key)static <K,V>
TransactionEntry<K,V>notReadEntry(K key)static <K,V>
TransactionEntry<K,V>read(K key, MetadataValue<V> value)voidremove()voidset(org.infinispan.api.common.CacheEntry<K,V> entry)ModificationtoModification(Function<K,byte[]> keyMarshaller, Function<V,byte[]> valueMarshaller)StringtoString()
-
-
-
Method Detail
-
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()
-
remove
public void remove()
-
toModification
public Modification toModification(Function<K,byte[]> keyMarshaller, Function<V,byte[]> valueMarshaller)
-
-