Class FileUpdateNotificationHandler

  • All Implemented Interfaces:
    Runnable

    public class FileUpdateNotificationHandler
    extends TimerTask
    Periodically checks on configuration file updates and notify respective listeners
    • Constructor Detail

      • FileUpdateNotificationHandler

        public FileUpdateNotificationHandler​(long sleepInterval)
        Constructor with file read interval as the input
        Parameters:
        sleepInterval - long value in milliseconds
    • Method Detail

      • registerListener

        public void registerListener​(DynamicProfileReloader dynamicProfileReloader)
        Register listeners for file update notifications
        Parameters:
        dynamicProfileReloader - Listener to be notified