Package dev.tachyonmcp.core.runtime
Record Class SseEvent
java.lang.Object
java.lang.Record
dev.tachyonmcp.core.runtime.SseEvent
- Record Components:
id- the event identifierevent- the event typedata- the event data payload
A single Server-Sent Event with an ID, event type, and data payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-