public abstract static class TopicTreeHandler.Default extends Object implements TopicTreeHandler
This simply logs active and closed notifications at debug level.
TopicTreeHandler.Default| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
void |
onActive(String topicPath,
RegisteredHandler registeredHandler)
Called when the handler has been registered at the server and is now
active.
|
void |
onClose(String topicPath)
Called if the handler is closed.
|
public void onActive(String topicPath, RegisteredHandler registeredHandler)
TopicTreeHandler
A session can register a single handler of each type for a given branch
of the topic tree. If there is already a handler registered for the topic
path the operation will fail, registeredHandler will be closed,
and the session error handler will be notified. To change the handler,
first close the previous handler.
onActive in interface TopicTreeHandlertopicPath - the path that the handler is active forregisteredHandler - allows the handler to be closedpublic void onClose(String topicPath)
TopicTreeHandlerclose.onClose in interface TopicTreeHandlertopicPath - the branch of the topic tree for which the handler was
registeredCopyright © 2025 DiffusionData Limited. All rights reserved.