Record Class SseSessionResult
java.lang.Object
java.lang.Record
com.mulesoft.connectors.a2a.internal.client.model.SseSessionResult
public record SseSessionResult(List<io.a2a.spec.StreamingEventKind> events, ResponseAttributes originalAttributes, boolean finalEventFound)
extends Record
Encapsulates the result of an SSE session, containing all collected events and metadata about the session completion.
-
Constructor Summary
ConstructorsConstructorDescriptionSseSessionResult(List<io.a2a.spec.StreamingEventKind> events, ResponseAttributes originalAttributes, boolean finalEventFound) Creates an instance of aSseSessionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.List<io.a2a.spec.StreamingEventKind>events()Returns the value of theeventsrecord component.booleanReturns the value of thefinalEventFoundrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginalAttributesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SseSessionResult
public SseSessionResult(List<io.a2a.spec.StreamingEventKind> events, ResponseAttributes originalAttributes, boolean finalEventFound) Creates an instance of aSseSessionResultrecord class.- Parameters:
events- the value for theeventsrecord componentoriginalAttributes- the value for theoriginalAttributesrecord componentfinalEventFound- the value for thefinalEventFoundrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
originalAttributes
Returns the value of theoriginalAttributesrecord component.- Returns:
- the value of the
originalAttributesrecord component
-
finalEventFound
public boolean finalEventFound()Returns the value of thefinalEventFoundrecord component.- Returns:
- the value of the
finalEventFoundrecord component
-