Skip to content

Commit

Permalink
Merge pull request #4 from StrongestNumber9/doc_fixes
Browse files Browse the repository at this point in the history
Fixes javadocs
  • Loading branch information
StrongestNumber9 authored May 17, 2023
2 parents 8a17e7b + c1dd39e commit 639dd71
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/com/teragrep/rlo_12/DirectoryEventWatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
* String directory = "/path/to/dir"
* boolean recurse = true;
* filePattern = "^foo-(.*)$";
* -> /path/to/dir subscribe
* -> /path/to/dir/foo/fii/faa subscribe as well (any dir under /path/to/dir
* -> match any file under /path/to/dir or it's sub-directories for pattern
* -> /path/to/dir subscribe
* -> /path/to/dir/foo/fii/faa subscribe as well (any dir under /path/to/dir
* -> match any file under /path/to/dir or it's sub-directories for pattern
*/
public class DirectoryEventWatcher {
private static final Logger LOGGER = LoggerFactory.getLogger(DirectoryEventWatcher.class);
Expand Down Expand Up @@ -148,7 +148,8 @@ private void initialScan(Path directory) throws IOException {
* NOTE multiple threads on poll need multiple directories watched because
* of the one key per dir fact
*
* @throws IOException
* @throws IOException Directory walking failed
* @throws InterruptedException Directory polling was interrupted
*/
public void watch() throws IOException, InterruptedException {
while (true) {
Expand Down

0 comments on commit 639dd71

Please sign in to comment.