Interface ClusteringDependentLogic

    • Method Detail

      • getCacheTopology

        LocalizedCacheTopology getCacheTopology()
        Returns:
        information about the location of keys.
      • localNodeIsOwner

        @Deprecated
        default boolean localNodeIsOwner​(java.lang.Object key)
        Deprecated.
        Since 9.0, please use getCacheTopology().isWriteOwner(key) instead.
      • localNodeIsPrimaryOwner

        @Deprecated
        default boolean localNodeIsPrimaryOwner​(java.lang.Object key)
        Deprecated.
        Since 9.0, please use getCacheTopology().getDistribution(key).isPrimary() instead.
      • getPrimaryOwner

        @Deprecated
        default Address getPrimaryOwner​(java.lang.Object key)
        Deprecated.
        Since 9.0, please use getCacheTopology().getDistributionInfo(key).primary() instead.
      • commitEntry

        void commitEntry​(CacheEntry entry,
                         org.infinispan.commands.FlagAffectedCommand command,
                         InvocationContext ctx,
                         Flag trackFlag,
                         boolean l1Invalidation)
      • commitType

        ClusteringDependentLogic.Commit commitType​(org.infinispan.commands.FlagAffectedCommand command,
                                                   InvocationContext ctx,
                                                   int segment,
                                                   boolean removed)
        Determines what type of commit this is. Whether we shouldn't commit, or if this is a commit due to owning the key or not
        Parameters:
        command -
        ctx -
        segment - if 0 or greater assumes the underlying container is segmented.
        removed -
        Returns:
      • getOwners

        @Deprecated
        default java.util.Collection<Address> getOwners​(java.util.Collection<java.lang.Object> keys)
        Deprecated.
        Since 9.0, please use getCacheTopology().getWriteOwners(keys) instead.
      • getOwners

        @Deprecated
        default java.util.Collection<Address> getOwners​(java.lang.Object key)
        Deprecated.
        Since 9.0, please use getCacheTopology().getWriteOwners(key) instead.
      • createNewVersionsAndCheckForWriteSkews

        EntryVersionsMap createNewVersionsAndCheckForWriteSkews​(VersionGenerator versionGenerator,
                                                                org.infinispan.context.impl.TxInvocationContext context,
                                                                org.infinispan.commands.tx.VersionedPrepareCommand prepareCommand)