Record Class ManagedAdmissionController.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.ManagedAdmissionController.Status
- Record Components:
active- physically outstanding permitsqueued- waiting callersadmitted- total granted permitsrejected- rejected/timed-out/interrupted requestsclosed- whether new admission is disabled
- Enclosing class:
ManagedAdmissionController
public static record ManagedAdmissionController.Status(int active, int queued, long admitted, long rejected, boolean closed)
extends Record
Atomic aggregate host-local counters.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(int active, int queued, long admitted, long rejected, boolean closed) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintactive()Returns the value of theactiverecord component.longadmitted()Returns the value of theadmittedrecord component.booleanclosed()Returns the value of theclosedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intqueued()Returns the value of thequeuedrecord component.longrejected()Returns the value of therejectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(int active, int queued, long admitted, long rejected, boolean closed) Creates an instance of aStatusrecord class.
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
active
-
queued
-
admitted
-
rejected
-
closed
-