Class Revoker
- java.lang.Object
-
- org.apache.curator.framework.recipes.locks.Revoker
-
public class Revoker extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
attemptRevoke(CuratorFramework client, String path)
Utility to mark a lock for revocation.
-
-
-
Method Detail
-
attemptRevoke
public static void attemptRevoke(CuratorFramework client, String path) throws Exception
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
-
-