Package aQute.lib.watcher
Class FileWatcher
- java.lang.Object
-
- aQute.lib.watcher.FileWatcher
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class FileWatcher extends java.lang.Object implements java.lang.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileWatcher.Builder(package private) static classFileWatcher.FileSystemWatcher
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.CountDownLatchjoinprivate java.util.Collection<FileWatcher.FileSystemWatcher>watchers
-
Constructor Summary
Constructors Constructor Description FileWatcher(java.util.Collection<FileWatcher.FileSystemWatcher> watchers, java.util.concurrent.CountDownLatch join)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawait()booleanawait(long timeout, java.util.concurrent.TimeUnit unit)voidclose()longgetCount()
-
-
-
Field Detail
-
watchers
private final java.util.Collection<FileWatcher.FileSystemWatcher> watchers
-
join
private final java.util.concurrent.CountDownLatch join
-
-
Constructor Detail
-
FileWatcher
FileWatcher(java.util.Collection<FileWatcher.FileSystemWatcher> watchers, java.util.concurrent.CountDownLatch join)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
await
public void await() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
await
public boolean await(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
getCount
public long getCount()
-
-