public final class TlsFileWatcher extends Object
Considering that the current client needs to support jdk 1.6 and module dependencies , the WatchFileCenter in the core module is not used
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
TlsFileWatcher.FileChangeListener |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addFileChangeListener(TlsFileWatcher.FileChangeListener fileChangeListener,
String... filePaths)
Add file change listener for specified path.
|
static TlsFileWatcher |
getInstance() |
void |
start()
start file watch task.
|
public static TlsFileWatcher getInstance()
public void addFileChangeListener(TlsFileWatcher.FileChangeListener fileChangeListener, String... filePaths) throws IOException
fileChangeListener - listenerfilePaths - file pathsIOException - If an I/O error occurspublic void start()
Copyright © 2018–2021 Alibaba Group. All rights reserved.