public interface BlockingRetainedMessageStore
| Modifier and Type | Method and Description |
|---|---|
void |
addOrReplace(RetainedMessage retainedMessage)
This method adds or replaces a retained message
|
void |
clear()
Removes all retained messages from the message store.
|
boolean |
contains(String topic)
Checks if a retained message is present in the retained message store.
|
boolean |
containsLocally(String topic)
Checks if a retained message is present in the retained message store, on this HiveMQ instance.
|
Set<RetainedMessage> |
getLocalRetainedMessages() |
RetainedMessage |
getRetainedMessage(String topic) |
Set<RetainedMessage> |
getRetainedMessages() |
Long |
localSize() |
void |
remove(String topic)
Removes the retained message from given topic.
|
long |
size() |
Set<RetainedMessage> getLocalRetainedMessages()
Long localSize()
boolean containsLocally(String topic)
topic - the topic associated with the retained messageRateLimitExceededException - if the plugin service rate limit was exceeded.Set<RetainedMessage> getRetainedMessages()
RateLimitExceededException - if the plugin service rate limit was exceeded.@Nullable RetainedMessage getRetainedMessage(String topic)
topic - a topicnull. instance with an empty referenceRateLimitExceededException - if the plugin service rate limit was exceeded.void remove(String topic)
topic - from which the message should be removedRateLimitExceededException - if the plugin service rate limit was exceeded.void clear()
void addOrReplace(RetainedMessage retainedMessage)
retainedMessage - which should be added or replacedRateLimitExceededException - if the plugin service rate limit was exceeded.boolean contains(String topic)
topic - the topic associated with the retained messageRateLimitExceededException - if the plugin service rate limit was exceeded.long size()
RateLimitExceededException - if the plugin service rate limit was exceeded.Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.