Class VersionedRepeatableReadEntry

    • Constructor Detail

      • VersionedRepeatableReadEntry

        public VersionedRepeatableReadEntry​(java.lang.Object key,
                                            java.lang.Object value,
                                            Metadata metadata)
    • Method Detail

      • performWriteSkewCheck

        public java.util.concurrent.CompletionStage<java.lang.Boolean> performWriteSkewCheck​(EntryLoader entryLoader,
                                                                                             int segment,
                                                                                             org.infinispan.context.impl.TxInvocationContext ctx,
                                                                                             EntryVersion versionSeen,
                                                                                             VersionGenerator versionGenerator)
        segment - the segment matching this entry
        ctx - the invocation context
        versionSeen - what version has been seen for this entry
        versionGenerator - generator to generate a new version if needed
        whether a write skew occurred for this entry
      • getVersion

        public EntryVersion getVersion()
        Specified by:
        getVersion in interface Versioned
        the version of the entry. May be null if versioning is not supported, and must never be null if versioning is supported.
      • setVersion

        public void setVersion​(EntryVersion version)
        Description copied from interface: Versioned
        Sets the version on this entry.
        Specified by:
        setVersion in interface Versioned
        version - version to set