Record Class McpServerStreamable
java.lang.Object
java.lang.Record
com.github.thought2code.mcp.annotated.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.
- Author:
- codeboyzhou
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class forMcpServerStreamable. -
Constructor Summary
ConstructorsConstructorDescriptionMcpServerStreamable(String mcpEndpoint, Boolean disallowDelete, Long keepAliveInterval, Integer port) Creates an instance of aMcpServerStreamablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic McpServerStreamable.Builderbuilder()Creates a new instance ofBuilderto buildMcpServerStreamable.Returns the value of thedisallowDeleterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeepAliveIntervalrecord component.Returns the value of themcpEndpointrecord component.port()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpServerStreamable
public McpServerStreamable(String mcpEndpoint, Boolean disallowDelete, Long keepAliveInterval, Integer port) Creates an instance of aMcpServerStreamablerecord class.- Parameters:
mcpEndpoint- the value for themcpEndpointrecord componentdisallowDelete- the value for thedisallowDeleterecord componentkeepAliveInterval- the value for thekeepAliveIntervalrecord componentport- the value for theportrecord component
-
-
Method Details
-
builder
Creates a new instance ofBuilderto buildMcpServerStreamable.- Returns:
- A new instance of
Builder.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
mcpEndpoint
Returns the value of themcpEndpointrecord component.- Returns:
- the value of the
mcpEndpointrecord component
-
disallowDelete
Returns the value of thedisallowDeleterecord component.- Returns:
- the value of the
disallowDeleterecord component
-
keepAliveInterval
Returns the value of thekeepAliveIntervalrecord component.- Returns:
- the value of the
keepAliveIntervalrecord component
-
port
Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-