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 ashost -> srflx, or null before one is selectedrttMillis- smoothed round trip timertoMillis- how long the association waits for an acknowledgement before it retransmitscongestionWindow- bytes the association may have in flightpeerReceiveWindow- bytes the client said it can still takeinFlightChunks- DATA chunks sent and not yet acknowledgedsendQueueBytes- bytes accepted for sending and not yet acknowledgedreceiveQueueBytes- bytes received and waiting for reassembly or orderingretransmittedChunks- DATA chunks sent again, by fast retransmit or timeoutfastRetransmits- packets sent again because the client reported gapstimeouts- times the retransmission timer expiredgapReports- 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 Summary
ConstructorsConstructorDescriptionNetherNetConnectionStats(@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 aNetherNetConnectionStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecongestionWindowrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefastRetransmitsrecord component.longReturns the value of thegapReportsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theinFlightChunksrecord component.static @Nullable NetherNetConnectionStatsof(org.cloudburstmc.netty.channel.nethernet.NetherNetChannel channel) @Nullable Stringpath()Returns the value of thepathrecord component.longReturns the value of thepeerReceiveWindowrecord component.longReturns the value of thereceiveQueueBytesrecord component.longReturns the value of theretransmittedChunksrecord component.longReturns the value of thertoMillisrecord component.longReturns the value of therttMillisrecord component.longReturns the value of thesendQueueBytesrecord component.longtimeouts()Returns the value of thetimeoutsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aNetherNetConnectionStatsrecord class.- Parameters:
path- the value for thepathrecord componentrttMillis- the value for therttMillisrecord componentrtoMillis- the value for thertoMillisrecord componentcongestionWindow- the value for thecongestionWindowrecord componentpeerReceiveWindow- the value for thepeerReceiveWindowrecord componentinFlightChunks- the value for theinFlightChunksrecord componentsendQueueBytes- the value for thesendQueueBytesrecord componentreceiveQueueBytes- the value for thereceiveQueueBytesrecord componentretransmittedChunks- the value for theretransmittedChunksrecord componentfastRetransmits- the value for thefastRetransmitsrecord componenttimeouts- the value for thetimeoutsrecord componentgapReports- the value for thegapReportsrecord 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
- Returns:
- one line for a list of players
-
details
- Returns:
- everything about one player, a line each
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
rttMillis
public long rttMillis()Returns the value of therttMillisrecord component.- Returns:
- the value of the
rttMillisrecord component
-
rtoMillis
public long rtoMillis()Returns the value of thertoMillisrecord component.- Returns:
- the value of the
rtoMillisrecord component
-
congestionWindow
public long congestionWindow()Returns the value of thecongestionWindowrecord component.- Returns:
- the value of the
congestionWindowrecord component
-
peerReceiveWindow
public long peerReceiveWindow()Returns the value of thepeerReceiveWindowrecord component.- Returns:
- the value of the
peerReceiveWindowrecord component
-
inFlightChunks
public long inFlightChunks()Returns the value of theinFlightChunksrecord component.- Returns:
- the value of the
inFlightChunksrecord component
-
sendQueueBytes
public long sendQueueBytes()Returns the value of thesendQueueBytesrecord component.- Returns:
- the value of the
sendQueueBytesrecord component
-
receiveQueueBytes
public long receiveQueueBytes()Returns the value of thereceiveQueueBytesrecord component.- Returns:
- the value of the
receiveQueueBytesrecord component
-
retransmittedChunks
public long retransmittedChunks()Returns the value of theretransmittedChunksrecord component.- Returns:
- the value of the
retransmittedChunksrecord component
-
fastRetransmits
public long fastRetransmits()Returns the value of thefastRetransmitsrecord component.- Returns:
- the value of the
fastRetransmitsrecord component
-
timeouts
public long timeouts()Returns the value of thetimeoutsrecord component.- Returns:
- the value of the
timeoutsrecord component
-
gapReports
public long gapReports()Returns the value of thegapReportsrecord component.- Returns:
- the value of the
gapReportsrecord component
-