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 supports
retriesSent - Retry packets sent, to validate clients' addresses
statelessResetsSent - stateless resets sent, for packets of connections the endpoint does not know
connectionsRefused - 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 Details

    • EndpointStats

      public EndpointStats(long versionNegotiationsSent, long retriesSent, long statelessResetsSent, long connectionsRefused)
      Creates an instance of a EndpointStats record class.
      Parameters:
      versionNegotiationsSent - the value for the versionNegotiationsSent record component
      retriesSent - the value for the retriesSent record component
      statelessResetsSent - the value for the statelessResetsSent record component
      connectionsRefused - the value for the connectionsRefused record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • versionNegotiationsSent

      public long versionNegotiationsSent()
      Returns the value of the versionNegotiationsSent record component.
      Returns:
      the value of the versionNegotiationsSent record component
    • retriesSent

      public long retriesSent()
      Returns the value of the retriesSent record component.
      Returns:
      the value of the retriesSent record component
    • statelessResetsSent

      public long statelessResetsSent()
      Returns the value of the statelessResetsSent record component.
      Returns:
      the value of the statelessResetsSent record component
    • connectionsRefused

      public long connectionsRefused()
      Returns the value of the connectionsRefused record component.
      Returns:
      the value of the connectionsRefused record component