DiffusionTM Java API 6.6.0-preview.1
public static interface TopicControl.MissingTopicHandler extends TopicTreeHandler
Handler instances can be registered using
|Modifier and Type||Interface and Description|
|Modifier and Type||Method and Description|
Called when a session requests a topic that does not exist, and the topic path belongs to part of the topic tree for which this handler was registered.
void onMissingTopic(TopicControl.MissingTopicNotification notification)
The implementation should take the appropriate action (for example,
create the topic), and then call
proceed on the supplied
notification. This allows the session request to continue and
successfully resolve against the topic if it was created.
Alternatively, the handler can call
cancel to discard the
request. A handler should always call
cancel, otherwise resources will continue to be reserved on
the server and the session's request will not complete.
notification- the missing topic notification
Copyright © 2020 Push Technology Ltd. All Rights Reserved.