org.eclipse.paho.client.mqttv3.internal
Class FileLock

java.lang.Object
  extended by org.eclipse.paho.client.mqttv3.internal.FileLock

public class FileLock
extends Object


Constructor Summary
FileLock(File clientDir, String lockFilename)
          Creates an NIO FileLock on the specified file if on a suitable Java runtime.
 
Method Summary
 void release()
          Releases the lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLock

public FileLock(File clientDir,
                String lockFilename)
         throws Exception
Creates an NIO FileLock on the specified file if on a suitable Java runtime.

Parameters:
clientDir - the a File of the directory to contain the lock file.
lockFilename - name of the the file to lock
Throws:
Exception - if the lock could not be obtained for any reason
Method Detail

release

public void release()
Releases the lock.



Copyright © 2013. All Rights Reserved.