public class Revoker extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
attemptRevoke(CuratorFramework client,
String path)
Utility to mark a lock for revocation.
|
public static void attemptRevoke(CuratorFramework client, String path) throws Exception
RevocationListener, it will get called and the lock should be released. Note,
however, that revocation is cooperative.client - the clientpath - the path of the lock - usually from something like
InterProcessMutex.getParticipantNodes()Exception - errorsCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.