cn.wizzer.iot.mqtt.server.common.message.IDupPubRelMessageStoreService Maven / Gradle / Ivy
/**
* Copyright (c) 2018, Mr.Wang ([email protected]) All rights reserved.
*/
package cn.wizzer.iot.mqtt.server.common.message;
import java.util.List;
/**
* PUBREL重发消息存储服务接口, 当QoS=2时存在该重发机制
*/
public interface IDupPubRelMessageStoreService {
/**
* 存储消息
*/
void put(String clientId, DupPubRelMessageStore dupPubRelMessageStore);
/**
* 获取消息集合
*/
List get(String clientId);
/**
* 删除消息
*/
void remove(String clientId, int messageId);
/**
* 删除消息
*/
void removeByClient(String clientId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy