Class AbstractFileEventFunctions.AbstractFileWatcher
- java.lang.Object
-
- net.rubygrapefruit.platform.internal.jni.AbstractFileEventFunctions.AbstractFileWatcher
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,FileWatcher
- Enclosing class:
- AbstractFileEventFunctions
protected abstract static class AbstractFileEventFunctions.AbstractFileWatcher extends java.lang.Object implements FileWatcher
-
-
Field Summary
-
Fields inherited from interface net.rubygrapefruit.platform.file.FileWatcher
EMPTY
-
-
Constructor Summary
Constructors Constructor Description AbstractFileWatcher(java.lang.Object details)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()Stops watching and releases any native resources.protected abstract voidstop(java.lang.Object details, FunctionResult result)
-
-
-
Method Detail
-
close
public void close()
Description copied from interface:FileWatcherStops watching and releases any native resources. No more calls to the associatedFileWatcherCallbackwill happen after this method returns.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceFileWatcher
-
stop
protected abstract void stop(java.lang.Object details, FunctionResult result)
-
-