Class AbstractConsistentHashFactory<CH extends ConsistentHash>

    • Constructor Detail

      • AbstractConsistentHashFactory

        public AbstractConsistentHashFactory()
    • Method Detail

      • findWorstPrimaryOwner

        protected Address findWorstPrimaryOwner​(org.infinispan.distribution.ch.impl.AbstractConsistentHashFactory.Builder builder,
                                                List<Address> nodes)
        Returns:
        The worst primary owner, or null if the remaining nodes own 0 segments.
      • findNewPrimaryOwner

        protected Address findNewPrimaryOwner​(org.infinispan.distribution.ch.impl.AbstractConsistentHashFactory.Builder builder,
                                              Collection<Address> candidates,
                                              Address primaryOwner)
        Returns:
        The candidate with the worst primary-owned segments/capacity ratio that is also not in the excludes list.