Interface ProtocolAdapterMetricsService


  • public interface ProtocolAdapterMetricsService
    Service class to increment and decrement adapter specific metrics.
    • Method Detail

      • incrementReadPublishSuccess

        void incrementReadPublishSuccess()
        Increments the counter for successful reads. NOTE: For PollingProtocolAdapter this is done by the framework.
      • incrementReadPublishFailure

        void incrementReadPublishFailure()
        Increments the counter for failed reads. NOTE: For PollingProtocolAdapter this is done by the framework.
      • incrementConnectionFailure

        void incrementConnectionFailure()
        Increments the metrics for failed connection attempts.
      • incrementConnectionSuccess

        void incrementConnectionSuccess()
        Increments the metrics for successful connection attempts.
      • increment

        void increment​(@NotNull
                       @NotNull String metricName)
        Custom counter can be incremented via this method.
        Parameters:
        metricName - the name of the custom counter, which will be prefixed with "com.hivemq.edge.protocol-adapters.ADAPTER_TYPE.ADAPTER_ID."