Package io.modelcontextprotocol.spec
Record Class McpStreamableServerSession.McpStreamableServerSessionInit
java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpStreamableServerSession.McpStreamableServerSessionInit
- Record Components:
session- the session instanceinitResult- the result to use to respond to the client
- Enclosing class:
- McpStreamableServerSession
public static record McpStreamableServerSession.McpStreamableServerSessionInit(McpStreamableServerSession session, reactor.core.publisher.Mono<McpSchema.InitializeResult> initResult)
extends Record
Composite holding the
McpStreamableServerSession and the initialization
result-
Constructor Summary
ConstructorsConstructorDescriptionMcpStreamableServerSessionInit(McpStreamableServerSession session, reactor.core.publisher.Mono<McpSchema.InitializeResult> initResult) Creates an instance of aMcpStreamableServerSessionInitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reactor.core.publisher.Mono<McpSchema.InitializeResult>Returns the value of theinitResultrecord component.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpStreamableServerSessionInit
public McpStreamableServerSessionInit(McpStreamableServerSession session, reactor.core.publisher.Mono<McpSchema.InitializeResult> initResult) Creates an instance of aMcpStreamableServerSessionInitrecord class.- Parameters:
session- the value for thesessionrecord componentinitResult- the value for theinitResultrecord 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). -
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
initResult
Returns the value of theinitResultrecord component.- Returns:
- the value of the
initResultrecord component
-