Record Class SseConnectionResult
java.lang.Object
java.lang.Record
com.mulesoft.connectors.a2a.internal.client.model.SseConnectionResult
public record SseConnectionResult(org.mule.runtime.http.api.sse.client.SseSource sseSource, ResponseAttributes responseAttributes)
extends Record
Encapsulates the result of establishing an SSE connection, containing both the SSE source and the HTTP response attributes from
the initial connection.
-
Constructor Summary
ConstructorsConstructorDescriptionSseConnectionResult(org.mule.runtime.http.api.sse.client.SseSource sseSource, ResponseAttributes responseAttributes) Creates an instance of aSseConnectionResultrecord 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.Returns the value of theresponseAttributesrecord component.org.mule.runtime.http.api.sse.client.SseSourceReturns the value of thesseSourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SseConnectionResult
public SseConnectionResult(org.mule.runtime.http.api.sse.client.SseSource sseSource, ResponseAttributes responseAttributes) Creates an instance of aSseConnectionResultrecord class.- Parameters:
sseSource- the value for thesseSourcerecord componentresponseAttributes- the value for theresponseAttributesrecord 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). -
sseSource
public org.mule.runtime.http.api.sse.client.SseSource sseSource()Returns the value of thesseSourcerecord component.- Returns:
- the value of the
sseSourcerecord component
-
responseAttributes
Returns the value of theresponseAttributesrecord component.- Returns:
- the value of the
responseAttributesrecord component
-