org.beangle.commons.file.watch
package org.beangle.commons.file.watch
Members list
Type members
Classlikes
class FileWatcher extends AutoCloseable
File Watcher
File Watcher
val watcher = FileWatcher.newBuilder().add("D:\\tmp","*.jpg","*.png")
.build((kind: String, path: Path) => {
println(s"$kind $path")
})
try {
Thread.sleep(1000000) // ensure the callback fires
} finally watcher.close()
Attributes
- Companion
- object
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
object FileWatcher
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FileWatcher.type
In this article