Interface PerformanceCounter

    • Method Detail

      • processExchange

        void processExchange​(org.apache.camel.Exchange exchange)
        Executed when an Exchange is about to be processed.
        Parameters:
        exchange - the exchange
      • completedExchange

        void completedExchange​(org.apache.camel.Exchange exchange,
                               long time)
        Executed when an Exchange is complete.
        Parameters:
        exchange - the exchange
        time - the time it took in millis to complete
      • failedExchange

        void failedExchange​(org.apache.camel.Exchange exchange)
        Executed when an Exchange failed.
        Parameters:
        exchange - the exchange
      • isStatisticsEnabled

        boolean isStatisticsEnabled()
        Are statistics enabled?

        They can be enabled and disabled at runtime

        Returns:
        whether statistics are enabled or not
      • setStatisticsEnabled

        void setStatisticsEnabled​(boolean statisticsEnabled)
        Sets whether statistics are enabled.

        They can be enabled and disabled at runtime

        Parameters:
        statisticsEnabled - whether statistics are enabled or not