Package net.rubygrapefruit.platform
Interface FileWatch
public interface FileWatch
A source for file change events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Stops watching for changes.voidBlocks 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
-