Record Class NativeAdmissionServerChannel.Stats
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.admission.NativeAdmissionServerChannel.Stats
- Enclosing class:
- NativeAdmissionServerChannel
public static record NativeAdmissionServerChannel.Stats(AdmissionGate.Stats admission, int liveNativePeers, long creationAttempts, long droppedEvents, NativeAdmissionServerChannel.Stats.Mux mux)
extends Record
Point-in-time counters for operator diagnostics.
mux is null before the endpoint binds or after it closes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordNative UDP mux counters. -
Constructor Summary
ConstructorsConstructorDescriptionStats(AdmissionGate.Stats admission, int liveNativePeers, long creationAttempts, long droppedEvents, NativeAdmissionServerChannel.Stats.Mux mux) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadmissionrecord component.longReturns the value of thecreationAttemptsrecord component.longReturns the value of thedroppedEventsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theliveNativePeersrecord component.mux()Returns the value of themuxrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stats
public Stats(AdmissionGate.Stats admission, int liveNativePeers, long creationAttempts, long droppedEvents, NativeAdmissionServerChannel.Stats.Mux mux) Creates an instance of aStatsrecord class.- Parameters:
admission- the value for theadmissionrecord componentliveNativePeers- the value for theliveNativePeersrecord componentcreationAttempts- the value for thecreationAttemptsrecord componentdroppedEvents- the value for thedroppedEventsrecord componentmux- the value for themuxrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
admission
Returns the value of theadmissionrecord component.- Returns:
- the value of the
admissionrecord component
-
liveNativePeers
public int liveNativePeers()Returns the value of theliveNativePeersrecord component.- Returns:
- the value of the
liveNativePeersrecord component
-
creationAttempts
public long creationAttempts()Returns the value of thecreationAttemptsrecord component.- Returns:
- the value of the
creationAttemptsrecord component
-
droppedEvents
public long droppedEvents()Returns the value of thedroppedEventsrecord component.- Returns:
- the value of the
droppedEventsrecord component
-
mux
Returns the value of themuxrecord component.- Returns:
- the value of the
muxrecord component
-