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:
    9.3
    Author:
    Pedro Ruivo
    • 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​(V value,
                        long lifespan,
                        TimeUnit lifespanTimeUnit,
                        long maxIdle,
                        TimeUnit maxIdleTimeUnit)
      • remove

        public void remove()