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