Class Revoker
java.lang.Object
org.apache.curator.framework.recipes.locks.Revoker
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
attemptRevoke
(CuratorFramework client, String path) Utility to mark a lock for revocation.
-
Method Details
-
attemptRevoke
Utility to mark a lock for revocation. Assuming that the lock has been registered with aRevocationListener
, it will get called and the lock should be released. Note, however, that revocation is cooperative.- Parameters:
client
- the clientpath
- the path of the lock - usually from something likeInterProcessMutex.getParticipantNodes()
- Throws:
Exception
- errors
-