public class TopicImpl extends AbstractTopic
Constructor and Description |
---|
TopicImpl(TopicKey key,
TopicsContextImpl topicsContext) |
Modifier and Type | Method and Description |
---|---|
void |
publish(Object messageData)
Publish data to the subscribed clients
|
void |
publishEvent(TopicEvent event)
Publishes topic event to all subscribed TopicListeners
|
addTopicListener, checkSubscription, getKey, getMessageDataSerializer, isAllowSubtopics, removeTopicListener, setAllowSubtopics, setMessageDataSerializer
public TopicImpl(TopicKey key, TopicsContextImpl topicsContext)
public void publish(Object messageData) throws MessageException
Topic
publish
in interface Topic
publish
in class AbstractTopic
messageData
- data that will be serialized by MessageDataSerializerMessageException
public void publishEvent(TopicEvent event)
Topic
publishEvent
in interface Topic
publishEvent
in class AbstractTopic
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.