You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2020/01/07 12:45:00 UTC

[jira] [Commented] (RATIS-781) Add ResourceSemaphore$Group#acquire(int... permits) api

    [ https://issues.apache.org/jira/browse/RATIS-781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009684#comment-17009684 ] 

Tsz-wo Sze commented on RATIS-781:
----------------------------------

+1 the 003 patch looks good

> Add ResourceSemaphore$Group#acquire(int... permits) api
> -------------------------------------------------------
>
>                 Key: RATIS-781
>                 URL: https://issues.apache.org/jira/browse/RATIS-781
>             Project: Ratis
>          Issue Type: Improvement
>          Components: util
>            Reporter: Lokesh Jain
>            Assignee: Lokesh Jain
>            Priority: Major
>         Attachments: RATIS-781.001.patch, RATIS-781.002.patch, RATIS-781.003.patch
>
>
> Currently ResourceSemaphore$Group supports tryAcquire api. It would be good to add an acquire api which blocks on the resources to acquire.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)