public class Revoker
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
attemptRevoke(org.apache.curator.framework.CuratorFramework client,
java.lang.String path) |
Utility to mark a lock for revocation.
|
public static void attemptRevoke(org.apache.curator.framework.CuratorFramework client,
java.lang.String path)
throws java.lang.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()java.lang.Exception - errorsCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.