BlockingSubscriptionStore or AsyncSubscriptionStore instead.@Deprecated public interface SubscriptionStore
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Void> |
addSubscription(String clientID,
Topic topic)
Deprecated.
Use
BlockingSubscriptionStore or AsyncSubscriptionStore instead. |
Set<String> |
getLocalSubscribers(String topic)
Deprecated.
Use
BlockingSubscriptionStore or AsyncSubscriptionStore instead. |
com.google.common.collect.Multimap<String,Topic> |
getLocalSubscriptions()
Deprecated.
Use
BlockingSubscriptionStore or AsyncSubscriptionStore instead. |
Set<Topic> |
getLocalTopics(String clientID)
Deprecated.
Use
BlockingSubscriptionStore or AsyncSubscriptionStore instead. |
com.google.common.util.concurrent.ListenableFuture<Set<String>> |
getSubscribers(String topic)
Deprecated.
Use
BlockingSubscriptionStore or AsyncSubscriptionStore instead. |
com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.Multimap<String,Topic>> |
getSubscriptions()
Deprecated.
Use
BlockingSubscriptionStore or AsyncSubscriptionStore instead. |
com.google.common.util.concurrent.ListenableFuture<Set<Topic>> |
getTopics(String clientID)
Deprecated.
Use
BlockingSubscriptionStore or AsyncSubscriptionStore instead. |
com.google.common.util.concurrent.ListenableFuture<Void> |
removeSubscription(String clientID,
String topic)
Deprecated.
Use
BlockingSubscriptionStore or AsyncSubscriptionStore instead. |
@ReadOnly @Deprecated com.google.common.collect.Multimap<String,Topic> getLocalSubscriptions()
Multimap of client identifiers and topics.
You won't receive subscriptions of connected
clients from other HiveMQ nodes if HiveMQ runs in a cluster.
Please be aware that calling this method on HiveMQ instances with many subscriptions could have
negative performance effects.
The returned Multimap is read-only and must not be modified.Multimap of client identifiers and their topic subscriptions@ReadOnly @Deprecated Set<String> getLocalSubscribers(@NotNull String topic)
null as topic. This method is lenient, so
it will just return an empty Set.
The returned Set is read-only and must not be modified.topic - the topic@ReadOnly @Deprecated Set<Topic> getLocalTopics(@NotNull String clientID)
null as clientId. This method is lenient, so
it will just return an empty Set.
The returned Set is read-only and must not be modified.clientID - of the client@Deprecated com.google.common.util.concurrent.ListenableFuture<Void> addSubscription(@NotNull String clientID, @NotNull Topic topic)
null, nothing will happen.clientID - client, which should be subscribedtopic - topic to which the client should be subscribedListenableFuture object that will succeed,
as soon es the subscription was added by all Cluster Nodes.@Deprecated com.google.common.util.concurrent.ListenableFuture<Void> removeSubscription(@NotNull String clientID, @NotNull String topic)
clientID - client, which should get unsubscribedtopic - topic from which the client should get unsubscribedListenableFuture object that will succeed,
as soon es the subscription was removed by all Cluster Nodes.@ReadOnly @Deprecated com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.Multimap<String,Topic>> getSubscriptions()
Multimap of client identifiers and topics.
Please be aware that calling this method on HiveMQ instances with many subscriptions could have
negative performance effects.
The returned Multimap is read-only and must not be modified.Multimap of client identifiers and their topic subscriptions@ReadOnly @Deprecated com.google.common.util.concurrent.ListenableFuture<Set<String>> getSubscribers(@NotNull String topic)
null as topic. This method is lenient, so
it will just return an empty Set.
The returned Set is read-only and must not be modified.topic - the topic@ReadOnly @Deprecated com.google.common.util.concurrent.ListenableFuture<Set<Topic>> getTopics(@NotNull String clientID)
null as clientId. This method is lenient, so
it will just return an empty Set.
The returned Set is read-only and must not be modified.clientID - of the clientCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.