Class NotificationManagerImpl
java.lang.Object
io.quarkiverse.mcp.server.runtime.FeatureManagerBase<Void,NotificationManager.NotificationInfo>
io.quarkiverse.mcp.server.runtime.NotificationManagerImpl
- All Implemented Interfaces:
FeatureManager<NotificationManager.NotificationInfo>,NotificationManager,Iterable<NotificationManager.NotificationInfo>
@Singleton
public class NotificationManagerImpl
extends FeatureManagerBase<Void,NotificationManager.NotificationInfo>
implements NotificationManager
-
Nested Class Summary
Nested classes/interfaces inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
FeatureManagerBase.FeatureDefinitionBase<INFO extends FeatureManager.FeatureInfo,ARGUMENTS, RESPONSE, THIS extends FeatureManagerBase.FeatureDefinitionBase<INFO, ARGUMENTS, RESPONSE, THIS>>, FeatureManagerBase.FeatureDefinitionInfoBase<ARGUMENTS, RESPONSE> 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 Nested classes/interfaces inherited from interface io.quarkiverse.mcp.server.NotificationManager
NotificationManager.NotificationArguments, NotificationManager.NotificationDefinition, NotificationManager.NotificationInfo -
Field Summary
Fields inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
connectionManager, currentIdentityAssociation, loggers, mapper, vertx -
Method Summary
Modifier and TypeMethodDescriptionprotected io.quarkiverse.mcp.server.runtime.FeatureManagerBase.FeatureInvoker<Void>getInvoker(String id, McpRequest mcpRequest) getNotification(Notification.Type type, String name) newNotification(String name) protected McpExceptionbooleanRemoves an init callback previously added withNotificationManager.newNotification(String).Methods inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
defaultValueConverters, execute, execute, fetchPage, hasInfos, iterator, log, matches, notifyConnections, prepareArguments, wrapResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getInvoker
protected io.quarkiverse.mcp.server.runtime.FeatureManagerBase.FeatureInvoker<Void> getInvoker(String id, McpRequest mcpRequest) - Specified by:
getInvokerin classFeatureManagerBase<Void,NotificationManager.NotificationInfo>
-
getNotification
- Specified by:
getNotificationin interfaceNotificationManager- Returns:
- the notification callback of the given type with the given name, or
null
-
newNotification
- Specified by:
newNotificationin interfaceNotificationManager- Parameters:
name- The name must be unique- Returns:
- a new definition builder
- See Also:
-
removeNotification
Description copied from interface:NotificationManagerRemoves an init callback previously added withNotificationManager.newNotification(String).- Specified by:
removeNotificationin interfaceNotificationManager- Returns:
- the removed notification callback or
nullif no such notification callback existed
-
notFound
- Specified by:
notFoundin classFeatureManagerBase<Void,NotificationManager.NotificationInfo>
-
key
-