Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-781

Add ResourceSemaphore$Group#acquire(int... permits) api

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • util
    • None

    Description

      Currently ResourceSemaphore$Group supports tryAcquire api. It would be good to add an acquire api which blocks on the resources to acquire.

      Attachments

        1. RATIS-781.001.patch
          2 kB
          Lokesh Jain
        2. RATIS-781.002.patch
          6 kB
          Lokesh Jain
        3. RATIS-781.003.patch
          6 kB
          Lokesh Jain

        Activity

          People

            ljain Lokesh Jain
            ljain Lokesh Jain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: