Class MqttHealthIndicator

java.lang.Object
io.micronaut.mqtt.v5.client.health.MqttHealthIndicator
All Implemented Interfaces:
io.micronaut.core.order.Ordered, io.micronaut.management.health.indicator.HealthIndicator

@Requires(property="endpoints.health.mqtt.client.enabled",value="true") @Requires(beans=io.micronaut.management.endpoint.health.HealthEndpoint.class) @Singleton public class MqttHealthIndicator extends Object implements io.micronaut.management.health.indicator.HealthIndicator
A HealthIndicator for Mqtt Client.
Since:
1.0.0
Author:
Charlie Kapopoulos
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    MqttHealthIndicator(org.eclipse.paho.mqttv5.client.MqttAsyncClient client)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Field Details

  • Constructor Details

    • MqttHealthIndicator

      public MqttHealthIndicator(org.eclipse.paho.mqttv5.client.MqttAsyncClient client)
      Constructor.
      Parameters:
      client - MqttAsyncClient.
  • Method Details

    • getResult

      public org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> getResult()
      Specified by:
      getResult in interface io.micronaut.management.health.indicator.HealthIndicator