public interface MessageQueue
Modifier and Type | Method and Description |
---|---|
void |
addTopic(String entity,
String topic)
Adds topic to the specified entity.
|
void |
addTopics(String entity,
Collection<String> topics)
Adds all topics to the given entity.
|
void |
forEachTopic(Consumer<String> action)
Performs the given action for all topics in the queue.
|
String |
getName()
Returns the queue name.
|
String |
getService()
Returns the full qualified service name.
|
List<String> |
getTopics()
Provides all topics of the queue.
|
List<String> |
getTopics(String entity)
Provides the topics of the given entity.
|
MessageType |
getType()
Returns the message type.
|
List<String> getTopics(String entity)
entity
- full qualified entity name.void forEachTopic(Consumer<String> action)
action
- action for each topicvoid addTopics(String entity, Collection<String> topics)
entity
- full qualified entitytopics
- list of topic patternsvoid addTopic(String entity, String topic)
entity
- full qualified entitytopic
- topic patternString getName()
String getService()
MessageType getType()
Copyright © 2019. All rights reserved.