Interface IMqttMessageStore
-
- All Known Implementing Classes:
InMemoryMqttMessageStore
public interface IMqttMessageStoremessage store- Author:
- L.cm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddRetainMessage(String topic, br.com.anteros.mqtt.core.server.model.Message message)存储 retain 消息booleanaddWillMessage(String clientId, br.com.anteros.mqtt.core.server.model.Message message)存储 clientId 的遗嘱消息booleanclearRetainMessage(String topic)清理该 topic 的 retain 消息booleanclearWillMessage(String clientId)清理该 clientId 的遗嘱消息List<br.com.anteros.mqtt.core.server.model.Message>getRetainMessage(String topicFilter)获取所有 retain 消息br.com.anteros.mqtt.core.server.model.MessagegetWillMessage(String clientId)获取 will 消息
-
-
-
Method Detail
-
addWillMessage
boolean addWillMessage(String clientId, br.com.anteros.mqtt.core.server.model.Message message)
存储 clientId 的遗嘱消息- Parameters:
clientId- clientIdmessage- message- Returns:
- boolean
-
clearWillMessage
boolean clearWillMessage(String clientId)
清理该 clientId 的遗嘱消息- Parameters:
clientId- clientId- Returns:
- boolean
-
getWillMessage
br.com.anteros.mqtt.core.server.model.Message getWillMessage(String clientId)
获取 will 消息- Parameters:
clientId- clientId- Returns:
- Message
-
addRetainMessage
boolean addRetainMessage(String topic, br.com.anteros.mqtt.core.server.model.Message message)
存储 retain 消息- Parameters:
topic- topicmessage- message- Returns:
- boolean
-
clearRetainMessage
boolean clearRetainMessage(String topic)
清理该 topic 的 retain 消息- Parameters:
topic- topic- Returns:
- boolean
-
-