class ApplePathWatcher extends PathWatcher[Event]
Implements the PathWatcher for Mac OSX using the Apple File System Events Api.
- Alphabetic
- By Inheritance
- ApplePathWatcher
- PathWatcher
- AutoCloseable
- Observable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ApplePathWatcher(directoryRegistry: DirectoryRegistry)
- new ApplePathWatcher(latency: Long, timeUnit: TimeUnit, flags: Create, onStreamRemoved: Consumer[String], managedDirectoryRegistry: DirectoryRegistry)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addObserver(observer: Observer[_ >: Event]): Int
Add an observer of events.
Add an observer of events.
- observer
the observer to add
- returns
the handle to the observer.
- Definition Classes
- ApplePathWatcher → Observable
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
Stops all appleFileEventStreams and closes the FileEventsApi
Stops all appleFileEventStreams and closes the FileEventsApi
- Definition Classes
- ApplePathWatcher → PathWatcher → AutoCloseable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
register(path: Path, flags: Create, maxDepth: Int): Either[IOException, Boolean]
Registers with additional flags
Registers with additional flags
- path
The directory to watch for file events
- flags
The flags com.swoval.files.apple.Flags.Create to set for the directory
- maxDepth
The maximum number of subdirectory levels to visit
- returns
an com.swoval.functional.Either containing the result of the registration or an IOException if registration fails. This method should be idempotent and return true the first time the directory is registered or when the depth is changed. Otherwise it should return false.
-
def
register(path: Path, maxDepth: Int): Either[IOException, Boolean]
Registers a path
Registers a path
- path
The directory to watch for file events
- maxDepth
The maximum number of subdirectory levels to visit
- returns
an com.swoval.functional.Either containing the result of the registration or an IOException if registration fails. This method should be idempotent and return true the first time the directory is registered or when the depth is changed. Otherwise it should return false.
- Definition Classes
- ApplePathWatcher → PathWatcher
-
def
removeObserver(handle: Int): Unit
Remove an observer.
Remove an observer.
- handle
the handle that was returned by addObserver
- Definition Classes
- ApplePathWatcher → Observable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unregister(path: Path): Unit
Unregisters a path
Unregisters a path
- path
The directory to remove from monitoring
- Definition Classes
- ApplePathWatcher → PathWatcher
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )