Record Class ManagedContainer.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.ManagedContainer.Status
- Record Components:
definitions- finite registered definitionsactiveCalls- currently open call scopesownedInstances- live uniquely owned productscreated- successful product creations, including borrowed valuesfailures- construction/disposal failuresclosed- whether the activation has closed
- Enclosing class:
ManagedContainer
public static record ManagedContainer.Status(int definitions, int activeCalls, int ownedInstances, long created, long failures, boolean closed)
extends Record
Bounded aggregate lifecycle counters without component names or configuration values.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(int definitions, int activeCalls, int ownedInstances, long created, long failures, boolean closed) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveCallsrecord component.booleanclosed()Returns the value of theclosedrecord component.longcreated()Returns the value of thecreatedrecord component.intReturns the value of thedefinitionsrecord component.final booleanIndicates whether some other object is "equal to" this one.longfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theownedInstancesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(int definitions, int activeCalls, int ownedInstances, long created, long failures, boolean closed) Creates an instance of aStatusrecord class.- Parameters:
definitions- the value for thedefinitionsrecord componentactiveCalls- the value for theactiveCallsrecord componentownedInstances- the value for theownedInstancesrecord componentcreated- the value for thecreatedrecord componentfailures- the value for thefailuresrecord componentclosed- the value for theclosedrecord 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. -
definitions
public int definitions()Returns the value of thedefinitionsrecord component.- Returns:
- the value of the
definitionsrecord component
-
activeCalls
public int activeCalls()Returns the value of theactiveCallsrecord component.- Returns:
- the value of the
activeCallsrecord component
-
ownedInstances
public int ownedInstances()Returns the value of theownedInstancesrecord component.- Returns:
- the value of the
ownedInstancesrecord component
-
created
-
failures
-
closed
-