Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-514

Utilize ThreadLocalRandom In QueueSharder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.2.0
    • 5.3.0
    • Recipes
    • None

    Description

      When applicable, use of ThreadLocalRandom rather than shared Random objects in concurrent programs will typically encounter much less overhead and contention.

      https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadLocalRandom.html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h