Interface MVCCEntry<K,​V>

    • Method Detail

      • copyForUpdate

        @Deprecated
        default void copyForUpdate​(DataContainer<? super K,​? super V> container)
        Deprecated.
        Since 8.0, use copyForUpdate() instead.
      • copyForUpdate

        @Deprecated
        default void copyForUpdate()
        Deprecated.
        since 9.0 noop
        Makes internal copies of the entry for updates
      • setChanged

        void setChanged​(boolean isChanged)
        Specified by:
        setChanged in interface CacheEntry<K,​V>
      • setExpired

        void setExpired​(boolean expired)
        Marks this entry as being expired. This is a special form of removal.
        Parameters:
        expired - whether or not this entry should be expired
      • isExpired

        boolean isExpired()
        Returns whether this entry was marked as being expired or not
        Returns:
        whether expired has been set
      • resetCurrentValue

        void resetCurrentValue()
        Reset the current value of the entry to the value before the commmand was executed the first time. This is invoked before the command is retried.
      • updatePreviousValue

        void updatePreviousValue()
        Update the previous value of the entry - set it to current value. This is invoked when the command is successfuly finished (there won't be any more retries) or when the value was updated from external source.
      • setRead

        default void setRead()
        Mark that this entry was loaded from the cache (as opposed to generated by the application using write-only command), mostly for purposes of the write skew check. Replaces CacheTransaction.addReadKey(Object).
      • isRead

        default boolean isRead()
        Check is this entry as loaded from the cache (as opposed to generated by the application using write-only command), mostly for purposes of the write skew check. Replaces CacheTransaction.keyRead(Object).
      • setCommitted

        default void setCommitted()
        Mark this context-entry as already committed to the DataContainer.
      • isCommitted

        default boolean isCommitted()
        Returns:
        True if this context entry has been committed to the DataContainer
      • isLoaded

        default boolean isLoaded()
        Specified by:
        isLoaded in interface CacheEntry<K,​V>
        Returns:
        True if we've checked persistence for presence of this entry.
      • setLoaded

        default void setLoaded​(boolean loaded)
        Specified by:
        setLoaded in interface CacheEntry<K,​V>