broker/Topic: class added
broker/Topic: String Topics replaced by Topic class broker/Topic#parseTopic: access set to private broker/SubscriptionsStoreTest: topic tests moved to own class broker/TopicTest: containsExactly used broker/TopicTest: TopicAssert class added broker/TopicTest$TopicAssert#containsToken: method added broker/TopicTest$TopicAssert#matches: method added
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package io.moquette.spi;
|
||||
|
||||
import io.moquette.spi.impl.subscriptions.Topic;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import io.netty.handler.codec.mqtt.MqttQoS;
|
||||
@@ -114,7 +115,7 @@ public interface IMessagesStore {
|
||||
* @param guid
|
||||
* of the message to mark as retained.
|
||||
*/
|
||||
void storeRetained(String topic, MessageGUID guid);
|
||||
void storeRetained(Topic topic, MessageGUID guid);
|
||||
|
||||
/**
|
||||
* Return a list of retained messages that satisfy the condition.
|
||||
@@ -138,7 +139,7 @@ public interface IMessagesStore {
|
||||
|
||||
StoredMessage getMessageByGuid(MessageGUID guid);
|
||||
|
||||
void cleanRetained(String topic);
|
||||
void cleanRetained(Topic topic);
|
||||
|
||||
int getPendingPublishMessages(String clientID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user