Class TransactionEntry<K,V>
java.lang.Object
org.infinispan.hotrod.impl.transaction.entry.TransactionEntry<K,V>
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 Summary
Modifier and TypeMethodDescriptionbooleanexists()getValue()longbooleanbooleanstatic <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()voidtoModification(Function<K, byte[]> keyMarshaller, Function<V, byte[]> valueMarshaller) toString()
-
Method Details
-
nonExistingEntry
-
notReadEntry
-
read
-
getVersion
public long getVersion() -
getValue
-
isModified
public boolean isModified() -
isNonExists
public boolean isNonExists() -
exists
public boolean exists() -
set
-
remove
public void remove() -
toModification
public Modification toModification(Function<K, byte[]> keyMarshaller, Function<V, byte[]> valueMarshaller) -
toString
-