public static class TopicControl.AddCallback.Default extends Callback.Default implements TopicControl.AddCallback
TopicControl.AddCallback.
Simply logs onTopicAdded callback at 'debug' level and onTopicAddFailed callback at 'warn' level. These methods can be overridden to perform actions as required.
TopicControl.AddCallback.Default| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
void |
onTopicAdded(String topicPath)
This will be called when the topic has been successfully added.
|
void |
onTopicAddFailed(String topicPath,
TopicAddFailReason reason)
This will be called if an attempt to add a topic has failed.
|
onDiscardpublic void onTopicAdded(String topicPath)
TopicControl.AddCallbackonTopicAdded in interface TopicControl.AddCallbacktopicPath - the topic path of the topic that was addedpublic void onTopicAddFailed(String topicPath, TopicAddFailReason reason)
TopicControl.AddCallbackonTopicAddFailed in interface TopicControl.AddCallbacktopicPath - the topic path as supplied to the add requestreason - the reason for failureCopyright © 2024 DiffusionData Limited. All rights reserved.