Monitor

better.files.File$.Monitor
trait Monitor extends AutoCloseable

Implement this interface to monitor the root file

Attributes

Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def onCreate(file: File, count: Int): Unit
def onDelete(file: File, count: Int): Unit
def onException(exception: Throwable): Unit
def onModify(file: File, count: Int): Unit
def onUnknownEvent(event: WatchEvent[_]): Unit
def start()(implicit executionContext: ExecutionContext): Unit

Concrete methods

def onEvent(eventType: Kind[Path], file: File, count: Int): Unit

Dispatch a StandardWatchEventKind to an appropriate callback Override this if you don't want to manually handle onDelete/onCreate/onModify separately

Dispatch a StandardWatchEventKind to an appropriate callback Override this if you don't want to manually handle onDelete/onCreate/onModify separately

Attributes

def stop(): Unit

Inherited methods

def close(): Unit

Attributes

Inherited from:
AutoCloseable

Abstract fields

val root: File