public interface TopicPublisher<T,M> extends View, Assetted<MapView<T,M,M>>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
keyedView()
If you attach a keyed view to an Asset, it is assumed that any child asset with be a SubAsset.
|
void |
publish(T topic,
M message)
Publish to a provided topic.
|
void |
registerTopicSubscriber(TopicSubscriber<T,M> topicSubscriber)
Add a subscription to this group.
|
void |
unregisterTopicSubscriber(TopicSubscriber<T,M> topicSubscriber)
Unregister a TopicSubscriber
|
asset, underlyingvoid publish(T topic, M message)
topic - to publish tomessage - to publish.void registerTopicSubscriber(TopicSubscriber<T,M> topicSubscriber) throws AssetNotFoundException
topicSubscriber - to listen to events.AssetNotFoundException - if the Asset is no longer valid.void unregisterTopicSubscriber(TopicSubscriber<T,M> topicSubscriber)
topicSubscriber - to unregisterCopyright © 2015. All rights reserved.