Package net.rubygrapefruit.platform
Interface FileWatch
public interface FileWatch
A source for file change events.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Stops watching for changes.void
Blocks until the next change occurs, or this watch is closed.
-
Method Details
-
nextChange
Blocks until the next change occurs, or this watch is closed.- Throws:
NativeException
- On some failure.ResourceClosedException
- When this file watch is closed.
-
close
Stops watching for changes. Any thread blocked innextChange()
will receive aResourceClosedException
.- Throws:
NativeException
-