Class QueueMonitor

java.lang.Object
cn.sliew.carp.framework.queue.kekio.metrics.QueueMonitor
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class QueueMonitor extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
publishes gauges based on regular polling of the queue state
  • Constructor Details

    • QueueMonitor

      public QueueMonitor(io.micrometer.core.instrument.MeterRegistry registry, MonitorableQueue queue)
  • Method Details

    • getLastState

      public MonitorableQueue.QueueState getLastState()
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception