类 TlsFileWatcher


  • public final class TlsFileWatcher
    extends java.lang.Object
    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
    • 字段详细资料

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • started

        private java.util.concurrent.atomic.AtomicBoolean started
      • checkInterval

        private final int checkInterval
      • fileMd5Map

        private java.util.Map<java.lang.String,​java.lang.String> fileMd5Map
      • service

        private final java.util.concurrent.ScheduledExecutorService service
    • 构造器详细资料

      • TlsFileWatcher

        private TlsFileWatcher()
    • 方法详细资料

      • addFileChangeListener

        public void addFileChangeListener​(TlsFileWatcher.FileChangeListener fileChangeListener,
                                          java.lang.String... filePaths)
                                   throws java.io.IOException
        Add file change listener for specified path.
        参数:
        fileChangeListener - listener
        filePaths - file paths
        抛出:
        java.io.IOException - If an I/O error occurs
      • start

        public void start()
        start file watch task. Notify when the MD5 of file changed