Constructor and Description |
---|
FileBasedLock(File lockFile) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
public FileBasedLock(File lockFile) throws FileNotFoundException
FileNotFoundException
public void lockInterruptibly() throws InterruptedException
lockInterruptibly
in interface Lock
InterruptedException
public boolean tryLock(long time, TimeUnit unit) throws InterruptedException
tryLock
in interface Lock
InterruptedException
public Condition newCondition()
newCondition
in interface Lock
protected void finalize() throws Throwable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014. All rights reserved.