public interface AsyncRetainedMessageStore
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Void> |
addOrReplace(RetainedMessage retainedMessage)
This method adds or replaces a retained message
|
com.google.common.util.concurrent.ListenableFuture<Void> |
clear()
Removes all retained messages from the message store.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
contains(String topic)
Checks if a retained message is present in the retained message store.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
containsLocally(String topic)
Checks if a retained message is present in the retained message store, on this HiveMQ instance.
|
com.google.common.util.concurrent.ListenableFuture<Set<RetainedMessage>> |
getLocalRetainedMessages() |
com.google.common.util.concurrent.ListenableFuture<RetainedMessage> |
getRetainedMessage(String topic) |
com.google.common.util.concurrent.ListenableFuture<Set<RetainedMessage>> |
getRetainedMessages() |
com.google.common.util.concurrent.ListenableFuture<Long> |
localSize() |
com.google.common.util.concurrent.ListenableFuture<Void> |
remove(String topic)
Removes the retained message from given topic.
|
com.google.common.util.concurrent.ListenableFuture<Long> |
size() |
com.google.common.util.concurrent.ListenableFuture<Set<RetainedMessage>> getLocalRetainedMessages()
ListenableFuture which contains all retained messages which are currently stored on this HiveMQ instance.com.google.common.util.concurrent.ListenableFuture<Long> localSize()
ListenableFuture which contains the number of all retained messages on this HiveMQ instance.
failing with a RateLimitExceededException if the plugin service rate limit was exceeded.com.google.common.util.concurrent.ListenableFuture<Boolean> containsLocally(String topic)
topic - the topic associated with the retained messageListenableFuture which contains true if there's a message for the given topic
failing with a RateLimitExceededException if the plugin service rate limit was exceeded.com.google.common.util.concurrent.ListenableFuture<Set<RetainedMessage>> getRetainedMessages()
ListenableFuture which contains all retained messages which are currently stored
failing with a RateLimitExceededException if the plugin service rate limit was exceeded.com.google.common.util.concurrent.ListenableFuture<RetainedMessage> getRetainedMessage(String topic)
topic - a topicListenableFuture which contains the retained message for the specific topic or null.
failing with a RateLimitExceededException if the plugin service rate limit was exceeded.com.google.common.util.concurrent.ListenableFuture<Void> remove(String topic)
topic - from which the message should be removedListenableFuture which returns after removal
failing with a RateLimitExceededException if the plugin service rate limit was exceeded.com.google.common.util.concurrent.ListenableFuture<Void> clear()
ListenableFuture which returns after removal
failing with a RateLimitExceededException if the plugin service rate limit was exceeded.com.google.common.util.concurrent.ListenableFuture<Void> addOrReplace(RetainedMessage retainedMessage)
retainedMessage - which should be added or replacedListenableFuture which returns after adding or replacing
failing with a RateLimitExceededException if the plugin service rate limit was exceeded.com.google.common.util.concurrent.ListenableFuture<Boolean> contains(String topic)
topic - the topic associated with the retained messageListenableFuture which contains true if there's a message for the given topic
failing with a RateLimitExceededException if the plugin service rate limit was exceeded.com.google.common.util.concurrent.ListenableFuture<Long> size()
ListenableFuture which contains the number of all retained messages
failing with a RateLimitExceededException if the plugin service rate limit was exceeded.Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.