package com.zksy.pole.MQTTServer.server;

import javax.annotation.PreDestroy;

/**
 * @author ShaoYang
 * @date 2024/03/13 15:53
 */
public interface IMQTTServer {

    /**
     * 主启动程序，初始化参数
     *
     * @throws Exception 初始化异常
     */
    void start() throws Exception;

    /**
     * 优雅的结束服务器
     *
     * @throws InterruptedException 提前中断异常
     */
    @PreDestroy
    void destroy() throws InterruptedException;
}


