public static interface TopicControl.MissingTopicHandler extends TopicTreeHandler
Handler instances can be registered using
addMissingTopicHandler
.
Modifier and Type | Interface and Description |
---|---|
static class |
TopicControl.MissingTopicHandler.Default
Abstract
TopicControl.MissingTopicHandler . |
Modifier and Type | Method and Description |
---|---|
void |
onMissingTopic(TopicControl.MissingTopicNotification notification)
Called when a client 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.
|
onActive, onClose
void onMissingTopic(TopicControl.MissingTopicNotification notification)
The handler implementation should take the appropriate action (for
example, create the topic), and then call
proceed
on the supplied
notification
. This allows the client 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 proceed
or
cancel
, otherwise resources will continue to be reserved on
the server and the client's request will not complete.
notification
- the missing topic notificationCopyright © 2016 Push Technology Ltd. All Rights Reserved.