Record Class AdmissionGate.PendingLimitWarning
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.admission.AdmissionGate.PendingLimitWarning
- Enclosing class:
- AdmissionGate
public static record AdmissionGate.PendingLimitWarning(int pending, int limit, long rejected)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPendingLimitWarning(int pending, int limit, long rejected) Creates an instance of aPendingLimitWarningrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlimit()Returns the value of thelimitrecord component.intpending()Returns the value of thependingrecord component.longrejected()Returns the value of therejectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PendingLimitWarning
public PendingLimitWarning(int pending, int limit, long rejected) Creates an instance of aPendingLimitWarningrecord class.- Parameters:
pending- the value for thependingrecord componentlimit- the value for thelimitrecord componentrejected- the value for therejectedrecord 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 '=='. -
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
rejected
public long rejected()Returns the value of therejectedrecord component.- Returns:
- the value of the
rejectedrecord component
-