Record Class McpServerStreamable
java.lang.Object
java.lang.Record
com.github.codeboyzhou.mcp.declarative.configuration.McpServerStreamable
public record McpServerStreamable(String mcpEndpoint, Boolean disallowDelete, Long keepAliveInterval, Integer port)
extends Record
This record represents the streamable http server configuration for an MCP (Model Context
Protocol) server.
It contains properties such as the MCP endpoint, disallow delete flag, keep-alive interval, and port.
- 作者:
- codeboyzhou
- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明McpServerStreamable(String mcpEndpoint, Boolean disallowDelete, Long keepAliveInterval, Integer port) 创建McpServerStreamable记录的实例。 -
方法概要
修饰符和类型方法说明static McpServerStreamable.Builderbuilder()Creates a new instance ofBuilderto buildMcpServerStreamable.返回disallowDelete记录组件的值。final boolean指示某个其他对象是否“等于”此对象。static McpServerStreamableReturns the default streamable http server configuration of the MCP server.final inthashCode()返回此对象的哈希代码值。返回keepAliveInterval记录组件的值。返回mcpEndpoint记录组件的值。port()返回port记录组件的值。final StringtoString()返回此记录的字符串表示形式。
-
构造器详细资料
-
方法详细资料
-
builder
Creates a new instance ofBuilderto buildMcpServerStreamable.- 返回:
- A new instance of
Builder.
-
getDefault
Returns the default streamable http server configuration of the MCP server.By default, the MCP endpoint is "/mcp/streamable", the disallow delete flag is
false, the keep-alive interval is 10000 milliseconds, and the port is 8080.- 返回:
- The default streamable http server configuration of the MCP server.
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
mcpEndpoint
返回mcpEndpoint记录组件的值。- 返回:
mcpEndpoint记录组件的值
-
disallowDelete
返回disallowDelete记录组件的值。- 返回:
disallowDelete记录组件的值
-
keepAliveInterval
返回keepAliveInterval记录组件的值。- 返回:
keepAliveInterval记录组件的值
-
port
返回port记录组件的值。- 返回:
port记录组件的值
-