org.apache.activemq.util
Class LockFile

java.lang.Object
  extended by org.apache.activemq.util.LockFile

public class LockFile
extends Object

Used to lock a File.

Author:
chirino

Constructor Summary
LockFile(File file, boolean deleteOnUnlock)
           
 
Method Summary
 void lock()
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockFile

public LockFile(File file,
                boolean deleteOnUnlock)
Method Detail

lock

public void lock()
          throws IOException
Throws:
IOException

unlock

public void unlock()


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.