{"action":"created","issue":{"url":"https://api.github.com/repos/redisson/redisson/issues/1391","repository_url":"https://api.github.com/repos/redisson/redisson","labels_url":"https://api.github.com/repos/redisson/redisson/issues/1391/labels{/name}","comments_url":"https://api.github.com/repos/redisson/redisson/issues/1391/comments","events_url":"https://api.github.com/repos/redisson/redisson/issues/1391/events","html_url":"https://github.com/redisson/redisson/issues/1391","id":314561432,"number":1391,"title":"Redisson: Why reactive client doesn't have PermitExpirableSemaphore?","user":{"login":"mangatmodi","id":2214083,"avatar_url":"https://avatars3.githubusercontent.com/u/2214083?v=4","gravatar_id":"","url":"https://api.github.com/users/mangatmodi","html_url":"https://github.com/mangatmodi","followers_url":"https://api.github.com/users/mangatmodi/followers","following_url":"https://api.github.com/users/mangatmodi/following{/other_user}","gists_url":"https://api.github.com/users/mangatmodi/gists{/gist_id}","starred_url":"https://api.github.com/users/mangatmodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangatmodi/subscriptions","organizations_url":"https://api.github.com/users/mangatmodi/orgs","repos_url":"https://api.github.com/users/mangatmodi/repos","events_url":"https://api.github.com/users/mangatmodi/events{/privacy}","received_events_url":"https://api.github.com/users/mangatmodi/received_events","type":"User","site_admin":false},"labels":[{"id":103309279,"url":"https://api.github.com/repos/redisson/redisson/labels/feature","name":"feature","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/redisson/redisson/milestones/76","html_url":"https://github.com/redisson/redisson/milestone/76","labels_url":"https://api.github.com/repos/redisson/redisson/milestones/76/labels","id":3252293,"number":76,"title":"2.12.0","description":"","creator":{"login":"mrniko","id":1104661,"avatar_url":"https://avatars0.githubusercontent.com/u/1104661?v=4","gravatar_id":"","url":"https://api.github.com/users/mrniko","html_url":"https://github.com/mrniko","followers_url":"https://api.github.com/users/mrniko/followers","following_url":"https://api.github.com/users/mrniko/following{/other_user}","gists_url":"https://api.github.com/users/mrniko/gists{/gist_id}","starred_url":"https://api.github.com/users/mrniko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrniko/subscriptions","organizations_url":"https://api.github.com/users/mrniko/orgs","repos_url":"https://api.github.com/users/mrniko/repos","events_url":"https://api.github.com/users/mrniko/events{/privacy}","received_events_url":"https://api.github.com/users/mrniko/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":3,"state":"open","created_at":"2018-04-09T12:34:26Z","updated_at":"2018-04-16T10:22:11Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-04-16T09:08:21Z","updated_at":"2018-04-16T11:13:52Z","closed_at":"2018-04-16T10:22:11Z","author_association":"NONE","body":"_Note: Asked same question here in [StackOverflow](https://stackoverflow.com/questions/49816942/redisson-why-reactive-client-doesnt-have-permitexpirablesemaphore), but there was no response._\r\n\r\nI am using redisson reactive Java client. In non reactive client one could get expirable Semaphore as:-\r\n\r\n`RPermitExpirableSemaphore semaphore = redisson.getPermitExpirableSemaphore(\"mySemaphore\");`\r\n\r\nBut If I create a reactive client, I can only find `redisson.getSemaphore(\"value\")` function. I need PermitExpirableSemaphore because:-\r\n\r\n 1. I need a lock, that could be released by different thread(so can't use `RLock`).\r\n 2. I need a lease timeout to prevent deadlock in case the lock aquiring thread is killed or stuck.\r\n\r\nIs there any way to achieve this behavior in Redisson?\r\n\r\nI can set lease time global in Config as:- `Config().setLockWatchdogTimeout(leaseTimeMs)`, but I really need different leasetime at different locks."},"comment":{"url":"https://api.github.com/repos/redisson/redisson/issues/comments/381564592","html_url":"https://github.com/redisson/redisson/issues/1391#issuecomment-381564592","issue_url":"https://api.github.com/repos/redisson/redisson/issues/1391","id":381564592,"user":{"login":"mangatmodi","id":2214083,"avatar_url":"https://avatars3.githubusercontent.com/u/2214083?v=4","gravatar_id":"","url":"https://api.github.com/users/mangatmodi","html_url":"https://github.com/mangatmodi","followers_url":"https://api.github.com/users/mangatmodi/followers","following_url":"https://api.github.com/users/mangatmodi/following{/other_user}","gists_url":"https://api.github.com/users/mangatmodi/gists{/gist_id}","starred_url":"https://api.github.com/users/mangatmodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangatmodi/subscriptions","organizations_url":"https://api.github.com/users/mangatmodi/orgs","repos_url":"https://api.github.com/users/mangatmodi/repos","events_url":"https://api.github.com/users/mangatmodi/events{/privacy}","received_events_url":"https://api.github.com/users/mangatmodi/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T11:13:52Z","updated_at":"2018-04-16T11:13:52Z","author_association":"NONE","body":"Wow that was fast! Thanks :)"}}
{"actor":{"display_login":"mangatmodi"}}