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.
|
onDiscard
public void onTopicAdded(String topicPath)
TopicControl.AddCallback
onTopicAdded
in interface TopicControl.AddCallback
topicPath
- the topic path of the topic that was addedpublic void onTopicAddFailed(String topicPath, TopicAddFailReason reason)
TopicControl.AddCallback
onTopicAddFailed
in interface TopicControl.AddCallback
topicPath
- the topic path as supplied to the add requestreason
- the reason for failureCopyright © 2024 DiffusionData Ltd. All Rights Reserved.