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:
  • Constructor Details

    • McpServerStreamable

      public McpServerStreamable(String mcpEndpoint, Boolean disallowDelete, Long keepAliveInterval, Integer port)
      Creates an instance of a McpServerStreamable record class.
      Parameters:
      mcpEndpoint - the value for the mcpEndpoint record component
      disallowDelete - the value for the disallowDelete record component
      keepAliveInterval - the value for the keepAliveInterval record component
      port - the value for the port record component
  • Method Details

    • builder

      public static McpServerStreamable.Builder builder()
      Creates a new instance of Builder to build McpServerStreamable.
      Returns:
      A new instance of Builder.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mcpEndpoint

      public String mcpEndpoint()
      Returns the value of the mcpEndpoint record component.
      Returns:
      the value of the mcpEndpoint record component
    • disallowDelete

      public Boolean disallowDelete()
      Returns the value of the disallowDelete record component.
      Returns:
      the value of the disallowDelete record component
    • keepAliveInterval

      public Long keepAliveInterval()
      Returns the value of the keepAliveInterval record component.
      Returns:
      the value of the keepAliveInterval record component
    • port

      public Integer port()
      Returns the value of the port record component.
      Returns:
      the value of the port record component