db 自动清除过期历史消息数据

This commit is contained in:
heavyrain2012
2021-01-23 18:01:28 +08:00
parent e5a4aa4741
commit 7923a3e0c4
6 changed files with 365 additions and 140 deletions
@@ -117,6 +117,7 @@ public final class BrokerConstants {
public static final String TOKEN_EXPIRE_TIME = "token.expire_time";
public static final String EMBED_DB_PROPERTY_NAME = "embed.db";
public static final String DB_AUTO_CLEAN_HISTORY_MESSAGES = "db.auto_clean_history_messages";
public static final String SENSITIVE_Filter_Type = "sensitive.filter.type";
@@ -436,6 +436,7 @@ public class Server {
System.out.println("Server will flush data to db before shutting down, please wait 5 seconds!");
LOG.info("Unbinding server from the configured ports");
m_shutdowning = true;
DBUtil.SystemExiting = true;
m_acceptor.close();
LOG.trace("Stopping MQTT protocol processor");