RefreshHook
@FunctionalInterface public interface RefreshHook
源码Source
io/agentscope/extensions/nacos/mcp/client/NacosMcpClientWrapper.java:224–228定义刷新钩子契约的接口。位于 io.agentscope.extensions.nacos.mcp.client 包。核心成员包括 postRefresh。
Hook called after #refresh(McpServerDetailInfo).
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void postRefresh(McpServerDetailInfo mcpServer, NacosMcpClientWrapper mcpClient) | 执行后置刷新相关操作。 Performs the post refresh operation. |
方法详情Method Detail
postRefresh
public void postRefresh(McpServerDetailInfo mcpServer, NacosMcpClientWrapper mcpClient)
执行后置刷新相关操作。
Performs the post refresh operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mcpServer | McpServerDetailInfo | MCP 服务端(类型 `McpServerDetailInfo`)。The mcp server. |
mcpClient | NacosMcpClientWrapper | MCP 客户端(类型 `NacosMcpClientWrapper`)。The mcp client. |
源码Source
io/agentscope/extensions/nacos/mcp/client/NacosMcpClientWrapper.java:227