public abstract class FileWatcher extends Object
| 构造器和说明 |
|---|
FileWatcher() |
| 限定符和类型 | 方法和说明 |
|---|---|
Executor |
executor()
If the FileWatcher has its own thread pool, use this thread pool to execute, otherwise use the WatchFileManager
thread.
|
abstract boolean |
interest(String context)
WatchEvent context information.
|
abstract void |
onChange(FileChangeEvent event)
Triggered when a file change occurs.
|
public abstract void onChange(FileChangeEvent event)
event - FileChangeEventpublic abstract boolean interest(String context)
context - WatchEvent.context()Copyright © 2018–2022 Alibaba Group. All rights reserved.