Package io.quarkiverse.mcp.server
Interface NotificationManager
- All Superinterfaces:
FeatureManager<NotificationManager.NotificationInfo>,Iterable<NotificationManager.NotificationInfo>
- All Known Implementing Classes:
NotificationManagerImpl
This manager can be used to register a new
Notification callback programmatically.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceNotificationManager.NotificationInfodefinition.static interfaceNotification info.Nested classes/interfaces inherited from interface io.quarkiverse.mcp.server.FeatureManager
FeatureManager.FeatureArguments, FeatureManager.FeatureDefinition<INFO extends FeatureManager.FeatureInfo,ARGUMENTS extends FeatureManager.FeatureArguments, RESPONSE, THIS extends FeatureManager.FeatureDefinition<INFO, ARGUMENTS, RESPONSE, THIS>>, FeatureManager.FeatureInfo, FeatureManager.RequestFeatureArguments -
Method Summary
Modifier and TypeMethodDescriptiongetNotification(Notification.Type type, String name) newNotification(String name) booleanRemoves an init callback previously added withnewNotification(String).Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getNotification
- Parameters:
type-name-- Returns:
- the notification callback of the given type with the given name, or
null
-
newNotification
- Parameters:
name- The name must be unique- Returns:
- a new definition builder
- See Also:
-
removeNotification
Removes an init callback previously added withnewNotification(String).- Returns:
- the removed notification callback or
nullif no such notification callback existed
-