Interface PerformanceStatsService

All Known Implementing Classes:
PerformanceStatsServiceImpl

@Internal @ThreadSafe public interface PerformanceStatsService
Service for registering performance data from this Bamboo instance.
See Also:
  • Method Details

    • recordExecution

      void recordExecution(@NotNull @NotNull ActionIdentifier actionIdentifier, long durationMillis)
      Record execution of an action for which performance was measured.
      Parameters:
      actionIdentifier - identifier for the executed action
      durationMillis - time it took the action to complete, in milliseconds
    • getAndClearStatistics

      @NotNull @NotNull Map<ActionIdentifier,Stats> getAndClearStatistics()
      Obtain statistics from all action executions registered so far. Wipe out all the currently held data. Note: All statistical values are measured in milliseconds.