Record Class AdmissionGate.Limits
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.admission.AdmissionGate.Limits
- Enclosing class:
- AdmissionGate
public static record AdmissionGate.Limits(int sessions, int claims, int pending, long handshakeMillis)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLimits(int sessions, int claims, int pending, long handshakeMillis) Creates an instance of aLimitsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintclaims()Returns the value of theclaimsrecord component.static AdmissionGate.Limitsdefaults()final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thehandshakeMillisrecord component.final inthashCode()Returns a hash code value for this object.intpending()Returns the value of thependingrecord component.intsessions()Returns the value of thesessionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Limits
public Limits(int sessions, int claims, int pending, long handshakeMillis) Creates an instance of aLimitsrecord class.- Parameters:
sessions- the value for thesessionsrecord componentclaims- the value for theclaimsrecord componentpending- the value for thependingrecord componenthandshakeMillis- the value for thehandshakeMillisrecord component
-
-
Method Details
-
defaults
-
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
-
claims
public int claims()Returns the value of theclaimsrecord component.- Returns:
- the value of the
claimsrecord component
-
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
handshakeMillis
public long handshakeMillis()Returns the value of thehandshakeMillisrecord component.- Returns:
- the value of the
handshakeMillisrecord component
-