Francesco Nigro created CURATOR-598:
---------------------------------------

             Summary: InterProcessSemaphoreV2::getData to check against data 
changes on the semaphore
                 Key: CURATOR-598
                 URL: https://issues.apache.org/jira/browse/CURATOR-598
             Project: Apache Curator
          Issue Type: New Feature
          Components: Recipes
    Affects Versions: 5.1.0
            Reporter: Francesco Nigro


InterProcessSemaphoreV2 allows holders to set data on the acquired lease: 
exposing an Optional<byte[]> getData would allow an observer to check against 
mutex state change despite not being the lock owner (assuming owner has used 
setData prior a mutex acquisition).
This can be used to enforce the order of mutex acquisition or just check 
owner's identity and/or presence (assuming owner setData prior a mutex 
acquisition).



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

Reply via email to