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.
|
onDiscard
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onDiscard
public void onTopicAdded(C context, String topicPath)
TopicControl.AddContextCallback
onTopicAdded
in interface TopicControl.AddContextCallback<C>
context
- the context object the application supplied when
making the call; may be null
topicPath
- the topic path of the topic that was addedpublic void onTopicAddFailed(C context, String topicPath, TopicAddFailReason reason)
TopicControl.AddContextCallback
onTopicAddFailed
in interface TopicControl.AddContextCallback<C>
context
- the context object the application supplied when
making the call; may be null
topicPath
- the topic path as supplied to the add requestreason
- the reason for failureCopyright © 2024 DiffusionData Ltd. All Rights Reserved.