public class MessageBroker extends java.lang.Object implements IMessageBroker
| Modifier and Type | Field and Description |
|---|---|
protected static MessageBroker |
broker |
protected java.util.List<ITopic> |
topics |
| Modifier | Constructor and Description |
|---|---|
protected |
MessageBroker() |
| Modifier and Type | Method and Description |
|---|---|
static MessageBroker |
getInstance() |
java.util.List<IMessage<?>> |
getMessages(java.lang.String topicName,
ITransformationStep step)
Returns all messages sent to a topic that have not been processed by the specified transformation step.
|
protected ITopic |
getTopic(java.lang.String topicName) |
void |
removeMessage(java.lang.String topicName,
ITransformationStep step,
IMessage<?> message)
Removes the specified message from the specified topic and the specified subscriber queue.
|
protected void |
removeTopic(java.lang.String topicName) |
void |
sendMessage(java.lang.String topicName,
IMessage<?> message)
Send the specified message to the topic whose name is matching the @param topicName parameter.
|
void |
subscribeTo(java.lang.String topicName,
ITransformationStep step)
Subscribes the given transformation step to the Topic whose name matches the @param topicName parameter.
|
protected static MessageBroker broker
protected java.util.List<ITopic> topics
public static MessageBroker getInstance()
public void subscribeTo(java.lang.String topicName,
ITransformationStep step)
IMessageBrokersubscribeTo in interface IMessageBrokerpublic void sendMessage(java.lang.String topicName,
IMessage<?> message)
IMessageBrokersendMessage in interface IMessageBrokerpublic java.util.List<IMessage<?>> getMessages(java.lang.String topicName, ITransformationStep step)
getMessages in interface IMessageBrokerpublic void removeMessage(java.lang.String topicName,
ITransformationStep step,
IMessage<?> message)
removeMessage in interface IMessageBrokerprotected ITopic getTopic(java.lang.String topicName)
protected void removeTopic(java.lang.String topicName)