Package io.quarkiverse.mcp.server
Interface NotificationManager.NotificationDefinition
- All Superinterfaces:
FeatureManager.FeatureDefinition<NotificationManager.NotificationInfo,NotificationManager.NotificationArguments, Void, NotificationManager.NotificationDefinition>
- Enclosing interface:
- NotificationManager
public static interface NotificationManager.NotificationDefinition
extends FeatureManager.FeatureDefinition<NotificationManager.NotificationInfo,NotificationManager.NotificationArguments,Void,NotificationManager.NotificationDefinition>
NotificationManager.NotificationInfo definition.
This construct is not thread-safe and should not be reused.
-
Method Summary
Modifier and TypeMethodDescriptionregister()Registers the resulting info and sends notifications to all connected clients.setType(Notification.Type type) Methods inherited from interface io.quarkiverse.mcp.server.FeatureManager.FeatureDefinition
setAsyncHandler, setDescription, setHandler, setHandler, setServerName
-
Method Details
-
setType
- Parameters:
type-- Returns:
- self
- See Also:
-
register
NotificationManager.NotificationInfo register()Description copied from interface:FeatureManager.FeatureDefinitionRegisters the resulting info and sends notifications to all connected clients.- Specified by:
registerin interfaceFeatureManager.FeatureDefinition<NotificationManager.NotificationInfo,NotificationManager.NotificationArguments, Void, NotificationManager.NotificationDefinition> - Returns:
- the notification info
- Throws:
IllegalArgumentException- if a notification with the given name and type already exits
-