Class DefaultTopicsRegistry

    • Method Detail

      • getValueTopic

        @NotNull
        public DefaultTopicsRegistry.ValueTopic getValueTopic​(String topicId)
        Description copied from interface: TopicsRegistry
        Value topic can be used when you want to broadcast messages containing the state of some value. Such messages are not incremental, e.g. every message is self-contained and doesn't depend on previously broadcasted. So at any time only the last published message is important and must be delivered to the clients. For example, you can use it to push the status of the running build or count of investigation for the specific user.
        Specified by:
        getValueTopic in interface TopicsRegistry
      • closeTopic

        public void closeTopic​(String topicId)
        Description copied from interface: TopicsRegistry
        After this call, all resources associated with the topic will be released. Don't publish to the closed topic! If you need - you can open it again using get...() method.
        Specified by:
        closeTopic in interface TopicsRegistry