Record Class ServerConfig

java.lang.Object
java.lang.Record
dev.tachyonmcp.core.server.config.ServerConfig
Record Components:
identity - server identity metadata (name, version, etc.)
capabilities - which MCP features are enabled
session - session lifecycle and persistence settings
network - transport-level settings (host, port, CORS, etc.)
runtime - handler-execution runtime settings (shutdown drain, etc.)
monitoring - diagnostics and observability settings

public record ServerConfig(ServerIdentity identity, CapabilitiesConfig capabilities, SessionConfig session, NetworkConfig network, RuntimeConfig runtime, MonitoringConfig monitoring) extends Record
Aggregated server configuration grouping identity, capabilities, session, network, runtime, and monitoring settings.
  • Constructor Details

  • Method Details

    • 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.
    • identity

      public ServerIdentity identity()
      Returns the value of the identity record component.
      Returns:
      the value of the identity record component
    • capabilities

      public CapabilitiesConfig capabilities()
      Returns the value of the capabilities record component.
      Returns:
      the value of the capabilities record component
    • session

      public SessionConfig session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component
    • network

      public NetworkConfig network()
      Returns the value of the network record component.
      Returns:
      the value of the network record component
    • runtime

      public RuntimeConfig runtime()
      Returns the value of the runtime record component.
      Returns:
      the value of the runtime record component
    • monitoring

      public MonitoringConfig monitoring()
      Returns the value of the monitoring record component.
      Returns:
      the value of the monitoring record component