Package net.rubygrapefruit.platform
Interface FileWatch
-
public interface FileWatch
A source for file change events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Stops watching for changes.void
nextChange()
Blocks until the next change occurs, or this watch is closed.
-
-
-
Method Detail
-
nextChange
void nextChange() throws NativeException
Blocks 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 NativeException
Stops watching for changes. Any thread blocked innextChange()
will receive aResourceClosedException
.- Throws:
NativeException
-
-