public class RemoteTopicPublisher<T,M> extends AbstractStatelessClient<TopicPublisherHandler.EventId> implements TopicPublisher<T,M>
csp, hub| Constructor and Description |
|---|
RemoteTopicPublisher(RequestContext context,
Asset asset,
MapView<T,M,M> underlying) |
| Modifier and Type | Method and Description |
|---|---|
Asset |
asset() |
void |
publish(T topic,
M message)
Publish to a provided topic.
|
void |
registerTopicSubscriber(TopicSubscriber<T,M> topicSubscriber)
Add a subscription to this group.
|
MapView<T,M,M> |
underlying() |
void |
unregisterTopicSubscriber(TopicSubscriber<T,M> topicSubscriber)
Unregister a TopicSubscriber
|
checkIsData, close, proxyReturnBoolean, proxyReturnBooleanWithArgs, proxyReturnBooleanWithSequence, proxyReturnByte, proxyReturnByte, proxyReturnInt, proxyReturnLong, proxyReturnTypedObject, proxyReturnUint16, proxyReturnVoid, proxyReturnVoid, proxyReturnWireConsumer, proxyReturnWireConsumerInOut, readBoolean, readInt, readReply, readReplyConsumer, sendEvent, sendEventAsync, sendEventAsyncWithoutLock, toParameters, writeAsyncMetaData, writeMetaDataForKnownTID, writeMetaDataStartTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeyedViewpublic RemoteTopicPublisher(@NotNull
RequestContext context,
@NotNull
Asset asset,
MapView<T,M,M> underlying)
throws AssetNotFoundException
AssetNotFoundExceptionpublic void publish(T topic, M message)
TopicPublisherpublish in interface TopicPublisher<T,M>topic - to publish tomessage - to publish.public void registerTopicSubscriber(@NotNull
TopicSubscriber<T,M> topicSubscriber)
throws AssetNotFoundException
TopicPublisherregisterTopicSubscriber in interface TopicPublisher<T,M>topicSubscriber - to listen to events.AssetNotFoundException - if the Asset is no longer valid.public void unregisterTopicSubscriber(TopicSubscriber<T,M> topicSubscriber)
TopicPublisherunregisterTopicSubscriber in interface TopicPublisher<T,M>topicSubscriber - to unregisterpublic Asset asset()
Copyright © 2015. All rights reserved.