Class Statistics.NullImplementation

  • All Implemented Interfaces:
    Statistics
    Enclosing interface:
    Statistics

    public static class Statistics.NullImplementation
    extends java.lang.Object
    implements Statistics
    • Constructor Detail

      • NullImplementation

        public NullImplementation()
    • Method Detail

      • register

        public void register​(Handle h)
        Description copied from interface: Statistics
        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.
        Specified by:
        register in interface Statistics
      • remove

        public void remove​(java.lang.String name)
        Description copied from interface: Statistics
        Remove a named handler from the set of working handlers.
        Specified by:
        remove in interface Statistics
      • getConfig

        public StatisticsConfig getConfig()
        Description copied from interface: Statistics
        Get current config used. This may be a null reference, depending on how the instance was constructed.
        Specified by:
        getConfig in interface Statistics
      • purge

        public int purge()
        Description copied from interface: Statistics
        Purges all cancelled Handles from internal Map and Timer.
        Specified by:
        purge in interface Statistics
        Returns:
        return value from java.util.Timer.purge()