C - context object typepublic static class TopicControl.AddContextCallback.Default<C> extends ContextCallback.Default<C> implements TopicControl.AddContextCallback<C>
TopicControl.AddContextCallback.
Simply logs onTopicAdded callback at 'debug' level and onTopicAddFailed callback at 'warn' level. These methods can be overridden to perform actions as required.
TopicControl.AddContextCallback.Default<C>| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
void |
onTopicAdded(C context,
String topicPath)
This will be called when the topic has been successfully added.
|
void |
onTopicAddFailed(C context,
String topicPath,
TopicAddFailReason reason)
This will be called if an attempt to add a topic has failed.
|
onDiscardclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonDiscardpublic void onTopicAdded(C context, String topicPath)
TopicControl.AddContextCallbackonTopicAdded in interface TopicControl.AddContextCallback<C>context - the context object the application supplied when
making the call; may be nulltopicPath - the topic path of the topic that was addedpublic void onTopicAddFailed(C context, String topicPath, TopicAddFailReason reason)
TopicControl.AddContextCallbackonTopicAddFailed in interface TopicControl.AddContextCallback<C>context - the context object the application supplied when
making the call; may be nulltopicPath - the topic path as supplied to the add requestreason - the reason for failureCopyright © 2024 DiffusionData Limited. All rights reserved.