com.netflix.curator.framework.recipes.locks
Class Revoker
java.lang.Object
com.netflix.curator.framework.recipes.locks.Revoker
public class Revoker
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
a
RevocationListener, 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 like
InterProcessMutex.getParticipantNodes()
- Throws:
Exception - errors
Copyright © 2012. All Rights Reserved.