org.apache.synapse.transport.dynamicconfigurations

## 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 Summary

    Constructors
    Constructor and Description
    `FileUpdateNotificationHandler(long sleepInterval)` Constructor with file read interval as the input

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `registerListener(DynamicProfileReloader dynamicProfileReloader)` Register listeners for file update notifications
    `void` | `run()`

    - ### Methods inherited from class java.util.TimerTask

      `cancel, scheduledExecutionTime`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FileUpdateNotificationHandler

          public FileUpdateNotificationHandler(long sleepInterval)

      Constructor with file read interval as the input
      Parameters:
        `sleepInterval` - long value in milliseconds

  - ### Method Detail

    - #### 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

Copyright © 2005–2023 Apache Software Foundation. All rights reserved.