Package com.swoval.files.apple
Class FileEventMonitors
- java.lang.Object
-
- com.swoval.files.apple.FileEventMonitors
-
public class FileEventMonitors extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FileEventMonitors.Handle
A handle for a file event stream that can be cancelled usingFileEventMonitor.stopStream(com.swoval.files.apple.FileEventMonitors.Handle)
.static class
FileEventMonitors.Handles
Provides an invalid handle that indicates that either registration of a stream was unsucessful or the stream has been made redundant by a stream for a different path that covers the path for which the stream was created.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileEventMonitor
get(Consumer<FileEvent> eventConsumer, Consumer<java.lang.String> streamConsumer)
-
-
-
Method Detail
-
get
public static FileEventMonitor get(Consumer<FileEvent> eventConsumer, Consumer<java.lang.String> streamConsumer) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
-