Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1757

Use a ConsistentHashFactory for consistent hash configuration

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 5.2.0.Final
    • 5.1.0.CR4
    • Configuration
    • None

    Description

      The new programmatic configuration allows the user to configure a consistent hash with `HashConfigurationBuilder.consistentHash(ConsistentHash)`.

      Since we always create new instances of the consistent hash, I think it would be nicer if we had `HashConfigurationBuilder.consistentHashFactory(ConsistentHashFactory)` instead.

      This would also allow us to have a single default factory that can choose between creating a `DefaultconsistentHash` or a `TopologyAwareConsistentHash` based on the transport configuration.

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: