Record Class NetherNetConnectionStats

java.lang.Object
java.lang.Record
org.geysermc.geyser.network.bedrock.nethernet.NetherNetConnectionStats
Record Components:
path - ICE candidate types of the selected path, such as host -> srflx, or null before one is selected
rttMillis - smoothed round trip time
rtoMillis - how long the association waits for an acknowledgement before it retransmits
congestionWindow - bytes the association may have in flight
peerReceiveWindow - bytes the client said it can still take
inFlightChunks - DATA chunks sent and not yet acknowledged
sendQueueBytes - bytes accepted for sending and not yet acknowledged
receiveQueueBytes - bytes received and waiting for reassembly or ordering
retransmittedChunks - DATA chunks sent again, by fast retransmit or timeout
fastRetransmits - packets sent again because the client reported gaps
timeouts - times the retransmission timer expired
gapReports - acknowledgements from the client that reported missing data

public record NetherNetConnectionStats(@Nullable String path, long rttMillis, long rtoMillis, long congestionWindow, long peerReceiveWindow, long inFlightChunks, long sendQueueBytes, long receiveQueueBytes, long retransmittedChunks, long fastRetransmits, long timeouts, long gapReports) extends Record
How a NetherNet connection is doing, read from its SCTP association. The counters are totals since the connection opened.
  • Constructor Details

    • NetherNetConnectionStats

      public NetherNetConnectionStats(@Nullable String path, long rttMillis, long rtoMillis, long congestionWindow, long peerReceiveWindow, long inFlightChunks, long sendQueueBytes, long receiveQueueBytes, long retransmittedChunks, long fastRetransmits, long timeouts, long gapReports)
      Creates an instance of a NetherNetConnectionStats record class.
      Parameters:
      path - the value for the path record component
      rttMillis - the value for the rttMillis record component
      rtoMillis - the value for the rtoMillis record component
      congestionWindow - the value for the congestionWindow record component
      peerReceiveWindow - the value for the peerReceiveWindow record component
      inFlightChunks - the value for the inFlightChunks record component
      sendQueueBytes - the value for the sendQueueBytes record component
      receiveQueueBytes - the value for the receiveQueueBytes record component
      retransmittedChunks - the value for the retransmittedChunks record component
      fastRetransmits - the value for the fastRetransmits record component
      timeouts - the value for the timeouts record component
      gapReports - the value for the gapReports record component
  • Method Details

    • of

      public static @Nullable NetherNetConnectionStats of(org.cloudburstmc.netty.channel.nethernet.NetherNetChannel channel)
      Returns:
      the channel's stats, or null while it has no SCTP association
    • summary

      public String summary(String player)
      Returns:
      one line for a list of players
    • details

      public String details(String player)
      Returns:
      everything about one player, a line each
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • path

      public @Nullable String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • rttMillis

      public long rttMillis()
      Returns the value of the rttMillis record component.
      Returns:
      the value of the rttMillis record component
    • rtoMillis

      public long rtoMillis()
      Returns the value of the rtoMillis record component.
      Returns:
      the value of the rtoMillis record component
    • congestionWindow

      public long congestionWindow()
      Returns the value of the congestionWindow record component.
      Returns:
      the value of the congestionWindow record component
    • peerReceiveWindow

      public long peerReceiveWindow()
      Returns the value of the peerReceiveWindow record component.
      Returns:
      the value of the peerReceiveWindow record component
    • inFlightChunks

      public long inFlightChunks()
      Returns the value of the inFlightChunks record component.
      Returns:
      the value of the inFlightChunks record component
    • sendQueueBytes

      public long sendQueueBytes()
      Returns the value of the sendQueueBytes record component.
      Returns:
      the value of the sendQueueBytes record component
    • receiveQueueBytes

      public long receiveQueueBytes()
      Returns the value of the receiveQueueBytes record component.
      Returns:
      the value of the receiveQueueBytes record component
    • retransmittedChunks

      public long retransmittedChunks()
      Returns the value of the retransmittedChunks record component.
      Returns:
      the value of the retransmittedChunks record component
    • fastRetransmits

      public long fastRetransmits()
      Returns the value of the fastRetransmits record component.
      Returns:
      the value of the fastRetransmits record component
    • timeouts

      public long timeouts()
      Returns the value of the timeouts record component.
      Returns:
      the value of the timeouts record component
    • gapReports

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