Package com.logviewer.data2
Class FileWatcherService
java.lang.Object
com.logviewer.data2.FileWatcherService
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
public class FileWatcherService
extends Object
implements org.springframework.beans.factory.DisposableBean
-
Constructor Details
-
FileWatcherService
public FileWatcherService()
-
-
Method Details
-
watchDirectory
public Destroyer watchDirectory(@NonNull Path dir, @NonNull Consumer<List<Path>> listener) throws IOException - Throws:
IOException
-
watchedDirectories
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-