Package io.github.mahmoudimus.quic
Record Class EndpointStats
java.lang.Object
java.lang.Record
io.github.mahmoudimus.quic.EndpointStats
- Record Components:
versionNegotiationsSent- Version Negotiation packets sent, to clients that offered no version the endpoint supportsretriesSent- Retry packets sent, to validate clients' addressesstatelessResetsSent- stateless resets sent, for packets of connections the endpoint does not knowconnectionsRefused- connections refused before they started (server busy, an invalid token or connection ID)
public record EndpointStats(long versionNegotiationsSent, long retriesSent, long statelessResetsSent, long connectionsRefused)
extends Record
What a QUIC endpoint answered itself, without a connection: from
QuicServer.endpointStats() and QuicClient.endpointStats().-
Constructor Summary
ConstructorsConstructorDescriptionEndpointStats(long versionNegotiationsSent, long retriesSent, long statelessResetsSent, long connectionsRefused) Creates an instance of aEndpointStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theconnectionsRefusedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theretriesSentrecord component.longReturns the value of thestatelessResetsSentrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theversionNegotiationsSentrecord component.
-
Constructor Details
-
EndpointStats
public EndpointStats(long versionNegotiationsSent, long retriesSent, long statelessResetsSent, long connectionsRefused) Creates an instance of aEndpointStatsrecord class.- Parameters:
versionNegotiationsSent- the value for theversionNegotiationsSentrecord componentretriesSent- the value for theretriesSentrecord componentstatelessResetsSent- the value for thestatelessResetsSentrecord componentconnectionsRefused- the value for theconnectionsRefusedrecord 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 with '=='. -
versionNegotiationsSent
public long versionNegotiationsSent()Returns the value of theversionNegotiationsSentrecord component.- Returns:
- the value of the
versionNegotiationsSentrecord component
-
retriesSent
public long retriesSent()Returns the value of theretriesSentrecord component.- Returns:
- the value of the
retriesSentrecord component
-
statelessResetsSent
public long statelessResetsSent()Returns the value of thestatelessResetsSentrecord component.- Returns:
- the value of the
statelessResetsSentrecord component
-
connectionsRefused
public long connectionsRefused()Returns the value of theconnectionsRefusedrecord component.- Returns:
- the value of the
connectionsRefusedrecord component
-