Annotation Type HotReload


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface HotReload
    Annotation to mark an object for hot configuration reloading. This will register a background thread to reload the configuration periodically in the target object.
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      long period
      The period to wait before reloading configuration.
      TimeUnit unit
      Time unit of the waiting period.
    • Element Detail

      • period

        long period
        The period to wait before reloading configuration.
        Returns:
        The period to wait before reloading configuration
        Default:
        15L
      • unit

        TimeUnit unit
        Time unit of the waiting period.
        Returns:
        Time unit of the waiting period
        Default:
        java.util.concurrent.TimeUnit.MINUTES