Package com.jsgalactic.axiom.execution
Record Class AdmissionSnapshot
java.lang.Object
java.lang.Record
com.jsgalactic.axiom.execution.AdmissionSnapshot
- Record Components:
active- reserved or running tasks, including cancelled code that has not exitedqueued- waiting tasks; these have no execution threadaccepted- total tasks accepted for immediate or queued executionrejected- total capacity, closed-dispatcher or executor-refusal rejections at submissionqueueTimeouts- total queue-wait expirations, excluding execution deadlines
public record AdmissionSnapshot(int active, int queued, long accepted, long rejected, long queueTimeouts)
extends Record
Consistent admission counters for one listener, including all its routes.
-
Constructor Summary
ConstructorsConstructorDescriptionAdmissionSnapshot(int active, int queued, long accepted, long rejected, long queueTimeouts) Creates an instance of aAdmissionSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongaccepted()Returns the value of theacceptedrecord component.intactive()Returns the value of theactiverecord 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.longReturns the value of thequeueTimeoutsrecord component.longrejected()Returns the value of therejectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AdmissionSnapshot
public AdmissionSnapshot(int active, int queued, long accepted, long rejected, long queueTimeouts) Creates an instance of aAdmissionSnapshotrecord class.- Parameters:
active- the value for theactiverecord componentqueued- the value for thequeuedrecord componentaccepted- the value for theacceptedrecord componentrejected- the value for therejectedrecord componentqueueTimeouts- the value for thequeueTimeoutsrecord 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
-
queued
public int queued()Returns the value of thequeuedrecord component.- Returns:
- the value of the
queuedrecord component
-
accepted
public long accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-
rejected
public long rejected()Returns the value of therejectedrecord component.- Returns:
- the value of the
rejectedrecord component
-
queueTimeouts
public long queueTimeouts()Returns the value of thequeueTimeoutsrecord component.- Returns:
- the value of the
queueTimeoutsrecord component
-