Class BasicMcpSubscriptionBroker

java.lang.Object
org.apache.juneau.rest.server.mcp.BasicMcpSubscriptionBroker
All Implemented Interfaces:
McpSubscriptionBroker, McpSubscriptions

Default McpSubscriptionBroker: a ConcurrentHashMap-backed registry doing filtered fan-out.

Publish methods (resourceUpdated(java.lang.String), toolsListChanged(), promptsListChanged(), resourcesListChanged()) build one McpChangeEvent and iterate the live registry, offering the event only to subscriptions whose McpSubscriptionFilter.matches(McpChangeEvent) returns true — this never broadcasts unconditionally the way org.apache.juneau.rest.server.sse.SseBroadcaster#publish does.