Class FileUpdateNotificationHandler

java.lang.Object
java.util.TimerTask
org.apache.synapse.transport.dynamicconfigurations.FileUpdateNotificationHandler
All Implemented Interfaces:
Runnable

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

    • FileUpdateNotificationHandler

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

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask
    • registerListener

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