org.apache.tamaya.events.internal

## Class DefaultConfigChangeObserver

- java.lang.Object
- - org.apache.tamaya.events.internal.DefaultConfigChangeObserver

-     public class DefaultConfigChangeObserver
      extends Object

  Timer task that regularly checks the configuration for changes.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultConfigChangeObserver()` Constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `checkConfigurationUpdate()`
    `void` | `enableMonitoring(boolean enable)`
    `long` | `getCheckPeriod()`
    `boolean` | `isMonitoring()`
    `void` | `setCheckPeriod(long checkPeriod)` Sets the new check period, cancels the currently running timer and schedules a new task with the new checkperiod and a startup delay of 500ms.

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

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

- - ### Constructor Detail

    - #### DefaultConfigChangeObserver

          public DefaultConfigChangeObserver()

      Constructor. Also loads all registered listeners.

  - ### Method Detail

    - #### checkConfigurationUpdate

          public void checkConfigurationUpdate()

    - #### getCheckPeriod

          public long getCheckPeriod()

    - #### isMonitoring

          public boolean isMonitoring()

    - #### enableMonitoring

          public void enableMonitoring(boolean enable)

    - #### setCheckPeriod

          public void setCheckPeriod(long checkPeriod)

      Sets the new check period, cancels the currently running timer and schedules a new task with the new checkperiod and a startup delay of 500ms.
      Parameters:
        `checkPeriod` - the period in ms, for checking on changes.

Copyright © 2014–2016 Apache Software Foundation. All rights reserved.