Skip to content

Commit

Permalink
fixup! fixup! fix(file.util): avoid inotify problems in containers by…
Browse files Browse the repository at this point in the history
… using polling over FileWatcher
  • Loading branch information
pichlermarc committed Apr 25, 2024
1 parent c2dc59d commit 692dbaa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/src/main/java/com/dynatrace/file/util/FilePollerFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ private FilePollerFactory() {}
/**
* Creates the default {@link FilePoller}.
*
* @implNote This method may choose to use a {@link java.nio.file.WatchService}-based implementation
* which can be problematic when used in conjunction with container bind-mounts. If the resulting {@link FilePoller}
* will be used in such a manner, consider using {@link FilePollerFactory#getPollBased(String, Duration)}.
*
* @implNote This method may choose to use a {@link java.nio.file.WatchService}-based
* implementation which can be problematic when used in conjunction with container
* bind-mounts. If the resulting {@link FilePoller} will be used in such a manner, consider
* using {@link FilePollerFactory#getPollBased(String, Duration)}.
* @param fileName The name of the file to be watched.
* @param pollInterval The interval in which the {@link FilePoller} will update, if applicable. Interval MAY not apply
* to {@link java.nio.file.WatchService} based implementations.
* Will default to 60s if {@code null} is passed.
* @param pollInterval The interval in which the {@link FilePoller} will update, if applicable.
* Interval MAY not apply to {@link java.nio.file.WatchService} based implementations. Will
* default to 60s if {@code null} is passed.
* @return An object that implements the abstract methods on {@link FilePoller}.
* @throws IOException if the initialization of the {@link FilePoller} is not successful
*/
Expand Down

0 comments on commit 692dbaa

Please sign in to comment.