class ApplePathWatcher extends PathWatcher[Event]

Implements the PathWatcher for Mac OSX using the Apple File System Events Api.

Linear Supertypes
PathWatcher[Event], AutoCloseable, Observable[Event], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ApplePathWatcher
  2. PathWatcher
  3. AutoCloseable
  4. Observable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ApplePathWatcher(directoryRegistry: DirectoryRegistry)
  2. new ApplePathWatcher(latency: Long, timeUnit: TimeUnit, flags: Create, onStreamRemoved: Consumer[String], managedDirectoryRegistry: DirectoryRegistry)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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
    ApplePathWatcherObservable
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def close(): Unit

    Stops all appleFileEventStreams and closes the FileEventsApi

    Stops all appleFileEventStreams and closes the FileEventsApi

    Definition Classes
    ApplePathWatcherPathWatcher → AutoCloseable
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. 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.

  18. 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
    ApplePathWatcherPathWatcher
  19. def removeObserver(handle: Int): Unit

    Remove an observer.

    Remove an observer.

    handle

    the handle that was returned by addObserver

    Definition Classes
    ApplePathWatcherObservable
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def unregister(path: Path): Unit

    Unregisters a path

    Unregisters a path

    path

    The directory to remove from monitoring

    Definition Classes
    ApplePathWatcherPathWatcher
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from PathWatcher[Event]

Inherited from AutoCloseable

Inherited from Observable[Event]

Inherited from AnyRef

Inherited from Any

Ungrouped