Interface MetricsCollector

All Known Implementing Classes:
MicrometerMetricsCollector, NoOpMetricsCollector

public interface MetricsCollector
Interface to collect execution data of the client.
  • Method Details

    • openConnection

      void openConnection()
      Called when a new Connection is opened.
    • closeConnection

      void closeConnection()
      Called when a Connection is closed.
    • openPublisher

      void openPublisher()
      Called when a new Publisher is opened.
    • closePublisher

      void closePublisher()
      Called when a Publisher is closed.
    • openConsumer

      void openConsumer()
      Called when a new Consumer is opened.
    • closeConsumer

      void closeConsumer()
      Called when a Consumer is closed.
    • publish

      void publish()
      Called when a Message is published.
    • publishDisposition

      void publishDisposition(MetricsCollector.PublishDisposition disposition)
      Called when a Message is settled by the broker.
      Parameters:
      disposition - disposition (outcome)
    • consume

      void consume()
      Called when a Message is dispatched to a Consumer.
    • consumeDisposition

      void consumeDisposition(MetricsCollector.ConsumeDisposition disposition)
      Called when a Message is settled by a Consumer.
      Parameters:
      disposition -