public interface SYSTopicService
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(SYSTopicEntry entry)
Adds a new $SYS topic entry.
|
boolean |
contains(SYSTopicEntry entry)
Checks if the SYSTopicService contains a given
SYSTopicEntry. |
Collection<SYSTopicEntry> |
getAllEntries(Type... types)
Returns a Collection of all
SYSTopicEntrys topics available. |
com.google.common.base.Optional<SYSTopicEntry> |
getEntry(String topic)
Returns the
SYSTopicEntry for a given topic. |
boolean |
removeEntry(SYSTopicEntry entry)
Removes a
SYSTopicEntry |
void |
triggerStandardSysTopicPublish()
Triggers a PUBLISH of all registered SYSTopicEntries with
Type STANDARD to all clients which are subscribed to the SYSTopics |
void |
triggerStandardSysTopicPublishToClient(String clientId)
Triggers a PUBLISH of all registered SYSTopicEntries with
Type STANDARD to a specified client. |
void |
triggerStaticSysTopicPublishToClient(String clientId)
Triggers a PUBLISH of all registered SYSTopicEntries with
Type STATIC to a specified client. |
Collection<SYSTopicEntry> getAllEntries(Type... types)
SYSTopicEntrys topics available.
It is possible to filter the returned list by Type.
By default, this method will return all SYSTopicEntrys.types - the Types to filterboolean contains(SYSTopicEntry entry)
SYSTopicEntry.entry - the SYSTopicEntry to checktrue if the Service contains the given SYSTopicEntry,
false otherwisecom.google.common.base.Optional<SYSTopicEntry> getEntry(String topic)
SYSTopicEntry for a given topic.topic - the topicOptional of a SYSTopicEntryvoid addEntry(SYSTopicEntry entry)
SYSTopicEntry must start with '$SYS'.entry - a new SYSTopicEntry to addboolean removeEntry(SYSTopicEntry entry)
SYSTopicEntryentry - the entry to removetrue if the SYSTopicEntry could be removed, false otherwisevoid triggerStandardSysTopicPublish()
Type STANDARD to all clients which are subscribed to the SYSTopicsvoid triggerStaticSysTopicPublishToClient(String clientId)
Type STATIC to a specified client.
The client receives all messages from topics it is subscribed on.clientId - The clientid for which to trigger the publishesvoid triggerStandardSysTopicPublishToClient(String clientId)
Type STANDARD to a specified client.
The client receives all messages from topics it is subscribed on.clientId - The clientid for which to trigger the publishesCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.