Package io.github.mahmoudimus.quic.token
Record Class TokenPayload.Retry
java.lang.Object
java.lang.Record
io.github.mahmoudimus.quic.token.TokenPayload.Retry
- Record Components:
address- the client's address and portoriginalDestinationId- the Destination Connection ID of the client's first Initialissued- when the token was issued
- All Implemented Interfaces:
TokenPayload
- Enclosing interface:
TokenPayload
public static record TokenPayload.Retry(InetSocketAddress address, ConnectionId originalDestinationId, Instant issued)
extends Record
implements TokenPayload
A token sent in a Retry packet (RFC 9000 section 8.1.2), bound to the client's address and
port, and short-lived since the client returns it at once.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.mahmoudimus.quic.token.TokenPayload
TokenPayload.Retry, TokenPayload.Validation -
Constructor Summary
ConstructorsConstructorDescriptionRetry(InetSocketAddress address, ConnectionId originalDestinationId, Instant issued) A Retry payload. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.issued()Returns the value of theissuedrecord component.Returns the value of theoriginalDestinationIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Retry
A Retry payload.- Parameters:
address- the client's resolved address and portoriginalDestinationId- the original Destination Connection IDissued- when issued; fractions of a second are dropped
-
-
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). -
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
originalDestinationId
Returns the value of theoriginalDestinationIdrecord component.- Returns:
- the value of the
originalDestinationIdrecord component
-
issued
Returns the value of theissuedrecord component.- Specified by:
issuedin interfaceTokenPayload- Returns:
- the value of the
issuedrecord component
-