C
- context object typeMethods that use callbacks are deprecated and will be removed in a future release. Use CompletableFuture variant instead.
@Deprecated public static interface TopicControl.AddContextCallback<C> extends ContextCallback<C>
Use this alternative to TopicControl.AddCallback
to associate some arbitrary
context object with each call.
Modifier and Type | Interface and Description |
---|---|
static class |
TopicControl.AddContextCallback.Default<C>
Deprecated.
A default implementation of
TopicControl.AddContextCallback . |
Modifier and Type | Method and Description |
---|---|
void |
onTopicAdded(C context,
String topicPath)
Deprecated.
This will be called when the topic has been successfully added.
|
void |
onTopicAddFailed(C context,
String topicPath,
TopicAddFailReason reason)
Deprecated.
This will be called if an attempt to add a topic has failed.
|
onDiscard
void onTopicAdded(C context, String topicPath)
context
- the context object the application supplied when
making the call; may be null
topicPath
- the topic path of the topic that was addedvoid onTopicAddFailed(C context, String topicPath, TopicAddFailReason reason)
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.