Class Revoker

java.lang.Object
org.apache.curator.framework.recipes.locks.Revoker

public class Revoker extends Object
  • Method Details

    • attemptRevoke

      public static void attemptRevoke(org.apache.curator.framework.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 client
      path - the path of the lock - usually from something like InterProcessMutex.getParticipantNodes()
      Throws:
      Exception - errors