Record Class NativeDiagnosticProbeAttempt.Request
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.diagnostic.NativeDiagnosticProbeAttempt.Request
- Enclosing class:
- NativeDiagnosticProbeAttempt
public static record NativeDiagnosticProbeAttempt.Request(DiagnosticAdmissionCodec.Context context, DiagnosticAdmissionCodec.Claims claims, String ufrag, byte[] offer)
extends Record
Owned exact fully gathered offer. Sensitive ICE credentials must not be logged or persisted.
-
Constructor Summary
ConstructorsConstructorDescriptionRequest(DiagnosticAdmissionCodec.Context context, DiagnosticAdmissionCodec.Claims claims, String ufrag, byte[] offer) Creates an instance of aRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclaims()Returns the value of theclaimsrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]offer()Returns the value of theofferrecord component.toString()Returns a string representation of this record class.ufrag()Returns the value of theufragrecord component.
-
Constructor Details
-
Request
public Request(DiagnosticAdmissionCodec.Context context, DiagnosticAdmissionCodec.Claims claims, String ufrag, byte[] offer) Creates an instance of aRequestrecord class.- Parameters:
context- the value for thecontextrecord componentclaims- the value for theclaimsrecord componentufrag- the value for theufragrecord componentoffer- the value for theofferrecord component
-
-
Method Details
-
offer
public byte[] offer()Returns the value of theofferrecord component.- Returns:
- the value of the
offerrecord component
-
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). -
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
claims
Returns the value of theclaimsrecord component.- Returns:
- the value of the
claimsrecord component
-
ufrag
Returns the value of theufragrecord component.- Returns:
- the value of the
ufragrecord component
-