Record Class NativeDiagnosticHostGate.Stats
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.diagnostic.NativeDiagnosticHostGate.Stats
- Enclosing class:
- NativeDiagnosticHostGate
public static record NativeDiagnosticHostGate.Stats(int active, int pending, int retainedAttempts, int liveNativePeers, long rejected, long droppedResults)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStats(int active, int pending, int retainedAttempts, int liveNativePeers, long rejected, long droppedResults) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintactive()Returns the value of theactiverecord component.longReturns the value of thedroppedResultsrecord 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.intpending()Returns the value of thependingrecord component.longrejected()Returns the value of therejectedrecord component.intReturns the value of theretainedAttemptsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stats
public Stats(int active, int pending, int retainedAttempts, int liveNativePeers, long rejected, long droppedResults) Creates an instance of aStatsrecord class.- Parameters:
active- the value for theactiverecord componentpending- the value for thependingrecord componentretainedAttempts- the value for theretainedAttemptsrecord componentliveNativePeers- the value for theliveNativePeersrecord componentrejected- the value for therejectedrecord componentdroppedResults- the value for thedroppedResultsrecord 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 '=='. -
active
public int active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
retainedAttempts
public int retainedAttempts()Returns the value of theretainedAttemptsrecord component.- Returns:
- the value of the
retainedAttemptsrecord component
-
liveNativePeers
public int liveNativePeers()Returns the value of theliveNativePeersrecord component.- Returns:
- the value of the
liveNativePeersrecord component
-
rejected
public long rejected()Returns the value of therejectedrecord component.- Returns:
- the value of the
rejectedrecord component
-
droppedResults
public long droppedResults()Returns the value of thedroppedResultsrecord component.- Returns:
- the value of the
droppedResultsrecord component
-