Add 'getSubscriptions' API on Server.

Add a test for sessions without clean session flag.
This commit is contained in:
teranisi
2016-10-20 14:23:57 +09:00
parent cf67d5ac52
commit 81a1d8d2b2
6 changed files with 69 additions and 3 deletions
@@ -93,6 +93,11 @@ public interface ISessionsStore {
* @return the subscription stored by clientID and topicFilter, if any else null;
* */
Subscription getSubscription(ClientTopicCouple couple);
/*
* @return all subscriptions stored.
*/
List<Subscription> getSubscriptions();
/**
* @return true iff there are subscriptions persisted with clientID