Record Class AdmissionGate.Stats
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.admission.AdmissionGate.Stats
- Enclosing class:
- AdmissionGate
public static record AdmissionGate.Stats(int sessions, int pending, int claims, long invalid, long replayRejected, long capacityRejected, long accepted)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStats(int sessions, int pending, int claims, long invalid, long replayRejected, long capacityRejected, long accepted) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongaccepted()Returns the value of theacceptedrecord component.longReturns the value of thecapacityRejectedrecord component.intclaims()Returns the value of theclaimsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longinvalid()Returns the value of theinvalidrecord component.intpending()Returns the value of thependingrecord component.longReturns the value of thereplayRejectedrecord component.intsessions()Returns the value of thesessionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stats
public Stats(int sessions, int pending, int claims, long invalid, long replayRejected, long capacityRejected, long accepted) Creates an instance of aStatsrecord class.- Parameters:
sessions- the value for thesessionsrecord componentpending- the value for thependingrecord componentclaims- the value for theclaimsrecord componentinvalid- the value for theinvalidrecord componentreplayRejected- the value for thereplayRejectedrecord componentcapacityRejected- the value for thecapacityRejectedrecord componentaccepted- the value for theacceptedrecord 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 '=='. -
sessions
public int sessions()Returns the value of thesessionsrecord component.- Returns:
- the value of the
sessionsrecord component
-
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
claims
public int claims()Returns the value of theclaimsrecord component.- Returns:
- the value of the
claimsrecord component
-
invalid
public long invalid()Returns the value of theinvalidrecord component.- Returns:
- the value of the
invalidrecord component
-
replayRejected
public long replayRejected()Returns the value of thereplayRejectedrecord component.- Returns:
- the value of the
replayRejectedrecord component
-
capacityRejected
public long capacityRejected()Returns the value of thecapacityRejectedrecord component.- Returns:
- the value of the
capacityRejectedrecord component
-
accepted
public long accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-