Package net.wenzuo.atom.mqtt.config
Class Mqttv3Configuration
java.lang.Object
net.wenzuo.atom.mqtt.config.Mqttv3Configuration
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationStartedEvent>,org.springframework.core.Ordered
@ConditionalOnClass(org.eclipse.paho.client.mqttv3.MqttClient.class)
@Configuration
public class Mqttv3Configuration
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationStartedEvent>, org.springframework.core.Ordered
- Since:
- 2024-06-26
- Author:
- Catch
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidonApplicationEvent(org.springframework.boot.context.event.ApplicationStartedEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
Mqttv3Configuration
public Mqttv3Configuration()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(@NonNull org.springframework.boot.context.event.ApplicationStartedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationStartedEvent>
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-