类 TlsFileWatcher
java.lang.Object
com.alibaba.nacos.common.tls.TlsFileWatcher
Certificate file update monitoring
Considering that the current client needs to support jdk 1.6 and module dependencies , the WatchFileCenter in the core module is not used
- 作者:
- wangwei
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明voidaddFileChangeListener(TlsFileWatcher.FileChangeListener fileChangeListener, String... filePaths)Add file change listener for specified path.static TlsFileWatchervoidstart()start file watch task.
-
方法详细资料
-
getInstance
-
addFileChangeListener
public void addFileChangeListener(TlsFileWatcher.FileChangeListener fileChangeListener, String... filePaths) throws IOExceptionAdd file change listener for specified path.- 参数:
fileChangeListener- listenerfilePaths- file paths- 抛出:
IOException- If an I/O error occurs
-
start
public void start()start file watch task. Notify when the MD5 of file changed
-