public interface MissingTopicNotificationHandler
Its instances can be registered using
Publisher.addMissingTopicHandler(String, MissingTopicNotificationHandler)
.
Modifier and Type | Method and Description |
---|---|
CompletableFuture<?> |
onMissingTopic(MissingTopicNotification missingTopicNotification)
Handle passed missing topic notification.
|
CompletableFuture<?> onMissingTopic(MissingTopicNotification missingTopicNotification)
This is called when a missing topic notification is received from the server.
A service can do anything upon receiving this notification, such as publishing to a topic for which the notification is received (which will create the topic).
missingTopicNotification
- a missing topic notificationIf the task completes successfully, the CompletableFuture result should be null. The result type is any rather than Void to provide forward compatibility with future iterations of this API that may provide a non-null result with a more specific result type.
If the task fails, the CompletableFuture should complete exceptionally.
Copyright © 2024 DiffusionData Limited. All rights reserved.