public class VanillaTopicPublisher<T,M> extends Object implements TopicPublisher<T,M>
| Constructor and Description |
|---|
VanillaTopicPublisher(FactoryContext<KeyValueStore<T,M,M>> context) |
| Modifier and Type | Method and Description |
|---|---|
Asset |
asset() |
void |
asset(Asset asset) |
View |
forSession(LocalSession session,
Asset asset) |
void |
publish(T topic,
M message) |
void |
registerSubscriber(TopicSubscriber<T,M> topicSubscriber) |
KeyValueStore<T,M,M> |
underlying() |
void |
underlying(KeyValueStore<T,M,M> underlying) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforSessionisUnderlyingpublic VanillaTopicPublisher(FactoryContext<KeyValueStore<T,M,M>> context)
public View forSession(LocalSession session, Asset asset)
forSession in interface Viewpublic void publish(T topic, M message)
publish in interface TopicPublisher<T,M>public void asset(Asset asset)
public void underlying(KeyValueStore<T,M,M> underlying)
underlying in interface Assetted<KeyValueStore<T,M,M>>public KeyValueStore<T,M,M> underlying()
underlying in interface Assetted<KeyValueStore<T,M,M>>public void registerSubscriber(TopicSubscriber<T,M> topicSubscriber)
registerSubscriber in interface TopicPublisher<T,M>Copyright © 2015. All rights reserved.