Record Class ManagedOwnershipPolicy.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedOwnershipPolicy.Status
- Record Components:
activeClaims- actual invocation-owned claims, at most64queuedRenewals- bounded queued maintenance tasksclosing- whether new invocations are refused
- Enclosing class:
ManagedOwnershipPolicy
public static record ManagedOwnershipPolicy.Status(int activeClaims, int queuedRenewals, boolean closing)
extends Record
Safe aggregate host diagnostics without keys, identities or application values.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(int activeClaims, int queuedRenewals, boolean closing) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveClaimsrecord component.booleanclosing()Returns the value of theclosingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thequeuedRenewalsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(int activeClaims, int queuedRenewals, boolean closing) Creates an instance of aStatusrecord class.- Parameters:
activeClaims- the value for theactiveClaimsrecord componentqueuedRenewals- the value for thequeuedRenewalsrecord componentclosing- the value for theclosingrecord component
-
-
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. -
activeClaims
public int activeClaims()Returns the value of theactiveClaimsrecord component.- Returns:
- the value of the
activeClaimsrecord component
-
queuedRenewals
public int queuedRenewals()Returns the value of thequeuedRenewalsrecord component.- Returns:
- the value of the
queuedRenewalsrecord component
-
closing
-