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 class
FileWatcher.Builder
(package private) static class
FileWatcher.FileSystemWatcher
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.CountDownLatch
join
private 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 void
await()
boolean
await(long timeout, java.util.concurrent.TimeUnit unit)
void
close()
long
getCount()
-
-
-
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:
close
in 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()
-
-