implicit final class MonitorExtensions extends AnyVal
Monitor Extensions
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MonitorExtensions
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val monitor: Monitor
-
def
onChanged(callback: (String, Stats, Stats) ⇒ Any): Monitor
A file has been changed.
A file has been changed. Three arguments, the filename, the current stat object, and the previous stat object.
monitor.on("changed", function (f, curr, prev) { ... })
Example: -
def
onCreated(callback: (String, Stats) ⇒ Any): Monitor
New file has been created.
New file has been created. Two arguments, the filename and the stat object.
monitor.on("created", function (f, stat) { ... })
Example: -
def
onRemoved(callback: (String, Stats) ⇒ Any): Monitor
A file has been moved or deleted.
A file has been moved or deleted. Two arguments, the filename and the stat object for the fd.
monitor.on("removed", function (f, stat) { ... })
Example: -
def
toString(): String
- Definition Classes
- Any