Package dev.tachyonmcp.core.runtime
Record Class InteractionEvent.OperationStarted
java.lang.Object
java.lang.Record
dev.tachyonmcp.core.runtime.InteractionEvent.OperationStarted
- Record Components:
session- the established session, ornullfor stateless connections
- All Implemented Interfaces:
InteractionEvent
- Enclosing interface:
InteractionEvent
public static record InteractionEvent.OperationStarted(@Nullable Session session)
extends Record
implements InteractionEvent
INITIALIZATION → OPERATION: protocol negotiation complete.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.tachyonmcp.core.runtime.InteractionEvent
InteractionEvent.OperationStarted, InteractionEvent.ShutdownComplete, InteractionEvent.ShutdownStarted -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InteractionEvent.OperationStartedReuse for stateless connections (no session). -
Constructor Summary
ConstructorsConstructorDescriptionOperationStarted(@Nullable Session session) Creates an instance of aOperationStartedrecord 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.@Nullable Sessionsession()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STATELESS
Reuse for stateless connections (no session).
-
-
Constructor Details
-
OperationStarted
Creates an instance of aOperationStartedrecord class.- Parameters:
session- the value for thesessionrecord 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
-