Package net.rubygrapefruit.platform
Interface FileWatch
-
public interface FileWatchA source for file change events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Stops watching for changes.voidnextChange()Blocks until the next change occurs, or this watch is closed.
-
-
-
Method Detail
-
nextChange
void nextChange() throws NativeExceptionBlocks until the next change occurs, or this watch is closed.- Throws:
NativeException- On some failure.ResourceClosedException- When this file watch is closed.
-
close
void close() throws NativeExceptionStops watching for changes. Any thread blocked innextChange()will receive aResourceClosedException.- Throws:
NativeException
-
-