Interface Statistics

    • Field Detail

      • nullImplementation

        static final Statistics nullImplementation
        A null implementation which ignores all calls and returns the default config
    • Method Detail

      • register

        void register​(Handle h)
        Add a new handle to be scheduled for periodic logging. If a handle already exists with the same name, it will be cancelled and removed from the internal state of this object.
      • remove

        void remove​(String name)
        Remove a named handler from the set of working handlers.
      • getConfig

        StatisticsConfig getConfig()
        Get current config used. This may be a null reference, depending on how the instance was constructed.
      • purge

        int purge()
        Purges all cancelled Handles from internal Map and Timer.
        Returns:
        return value from java.util.Timer.purge()