Class DurationThresholdWarningTimingHelper

    • Method Detail

      • newTimer

        @Deprecated
        public DurationThresholdWarningTimingHelper.Timer newTimer​(com.google.common.base.Supplier<String> actionDescriptionSupplier,
                                                                   boolean disableWarnings)
        Deprecated.
        Creates a new Timer for timing an operation.
        Parameters:
        actionDescriptionSupplier - Supplies a description of the operation. Will only be invoked if a warning needs to be logged.
        disableWarnings - true if all threshold warnings from this timer should be disabled, false otherwise
        Returns:
        a new Timer to be used for this operation.
      • newDescribedTimer

        public DurationThresholdWarningTimingHelper.Timer newDescribedTimer​(Supplier<String> actionDescriptionSupplier,
                                                                            boolean disableWarnings)
        Creates a new Timer for timing an operation.
        Parameters:
        actionDescriptionSupplier - Supplies a description of the operation. Will only be invoked if a warning needs to be logged.
        disableWarnings - true if all threshold warnings from this timer should be disabled, false otherwise
        Returns:
        a new Timer to be used for this operation.
        Since:
        6.14