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 enabledsession- session lifecycle and persistence settingsnetwork- 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 Summary
ConstructorsConstructorDescriptionServerConfig(ServerIdentity identity, CapabilitiesConfig capabilities, SessionConfig session, NetworkConfig network, RuntimeConfig runtime, MonitoringConfig monitoring) Creates an instance of aServerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.Returns the value of themonitoringrecord component.network()Returns the value of thenetworkrecord component.runtime()Returns the value of theruntimerecord component.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerConfig
public ServerConfig(ServerIdentity identity, CapabilitiesConfig capabilities, SessionConfig session, NetworkConfig network, RuntimeConfig runtime, MonitoringConfig monitoring) Creates an instance of aServerConfigrecord class.- Parameters:
identity- the value for theidentityrecord componentcapabilities- the value for thecapabilitiesrecord componentsession- the value for thesessionrecord componentnetwork- the value for thenetworkrecord componentruntime- the value for theruntimerecord componentmonitoring- the value for themonitoringrecord component
-
-
Method Details
-
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). -
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
network
Returns the value of thenetworkrecord component.- Returns:
- the value of the
networkrecord component
-
runtime
Returns the value of theruntimerecord component.- Returns:
- the value of the
runtimerecord component
-
monitoring
Returns the value of themonitoringrecord component.- Returns:
- the value of the
monitoringrecord component
-