Class Mqtt3MessageHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.mqtt.client.outbound.AbstractMqttMessageHandler<com.hivemq.client.mqtt.mqtt3.Mqtt3Client>
org.springframework.integration.mqtt.client.outbound.Mqtt3MessageHandler
- All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, ApplicationEventPublisherAware, Ordered, ComponentSourceAware, ExpressionCapable, Orderable, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>
public class Mqtt3MessageHandler
extends AbstractMqttMessageHandler<com.hivemq.client.mqtt.mqtt3.Mqtt3Client>
The
AbstractMqttMessageHandler implementation for MQTT v3.- Since:
- 7.2
- Author:
- Jiandong Ma, Artem Bilan
-
Nested Class Summary
Nested classes/interfaces inherited from interface IntegrationManagement
IntegrationManagement.ManagementOverrides -
Field Summary
Fields inherited from class IntegrationObjectSupport
EXPRESSION_PARSER, loggerFields inherited from interface IntegrationManagement
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionMqtt3MessageHandler(ClientManager<com.hivemq.client.mqtt.mqtt3.Mqtt3Client> mqttClientManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectbuildMqttMessage(String topic, byte[] body, com.hivemq.client.mqtt.datatypes.MqttQos qos, boolean retained, Message<?> message) protected booleanisMqttMessage(Object payload) protected voidpublishMqttMessage(Object messageForPublish, Message<?> message) Methods inherited from class AbstractMqttMessageHandler
getClient, getComponentType, getEvaluationContext, handleMessageInternal, isAsync, messageSentEvent, onInit, sendDeliveryCompleteEvent, sendFailedDeliveryEvent, setApplicationEventPublisher, setAsync, setDefaultQos, setDefaultRetained, setDefaultTopic, setMessageConverter, setQosExpression, setQosExpressionString, setRetainedExpression, setRetainedExpressionString, setTopicExpression, setTopicExpressionStringMethods inherited from class AbstractMessageHandler
handleMessage, onComplete, onError, onNext, onSubscribe, setObservationConventionMethods inherited from class MessageHandlerSupport
buildSendTimer, destroy, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackMethods inherited from class IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface reactor.core.CoreSubscriber
currentContextMethods inherited from interface IntegrationManagement
getThisAsMethods inherited from interface NamedComponent
getBeanName, getComponentName
-
Constructor Details
-
Mqtt3MessageHandler
public Mqtt3MessageHandler(ClientManager<com.hivemq.client.mqtt.mqtt3.Mqtt3Client> mqttClientManager)
-
-
Method Details
-
isMqttMessage
- Specified by:
isMqttMessagein classAbstractMqttMessageHandler<com.hivemq.client.mqtt.mqtt3.Mqtt3Client>
-
buildMqttMessage
protected Object buildMqttMessage(String topic, byte[] body, com.hivemq.client.mqtt.datatypes.MqttQos qos, boolean retained, Message<?> message) - Specified by:
buildMqttMessagein classAbstractMqttMessageHandler<com.hivemq.client.mqtt.mqtt3.Mqtt3Client>
-
publishMqttMessage
- Specified by:
publishMqttMessagein classAbstractMqttMessageHandler<com.hivemq.client.mqtt.mqtt3.Mqtt3Client>
-