sealed case classUnRegisterCallback(event: Kind[Path], recursive: Boolean = false, path: Path) extends Product with Serializable
Message case class for telling a MonitorActor to un-register a
path for callback
Note that this does not remove the event listeners from the Java API,
because such functionality does not exist. All this does is make sure that the callbacks
registered to a specific path do not get fired. Depending on your use case,
it may make more sense to just kill the monitor actor to start fresh.
event
WatchEvent.Kind[Path], one of ENTRY_CREATE, ENTRY_MODIFY, ENTRY_DELETE
recursive
Boolean to specify to recursively register the callback or not, defaults to false
path
Path (Java object) pointing to a file/directory
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Message case class for telling a MonitorActor to un-register a path for callback
Note that this does not remove the event listeners from the Java API, because such functionality does not exist. All this does is make sure that the callbacks registered to a specific path do not get fired. Depending on your use case, it may make more sense to just kill the monitor actor to start fresh.
WatchEvent.Kind[Path], one of ENTRY_CREATE, ENTRY_MODIFY, ENTRY_DELETE
Boolean to specify to recursively register the callback or not, defaults to false
Path (Java object) pointing to a file/directory