Record Class LiveServiceBindings.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.LiveServiceBindings.Status
- Record Components:
bindings- active or initializing bindingsqueuedCallbacks- bounded queued observer taskscallbackFailures- failed observer invocationsclosed- owner lifecycle state
- Enclosing class:
LiveServiceBindings
public static record LiveServiceBindings.Status(int bindings, int queuedCallbacks, long callbackFailures, boolean closed)
extends Record
Safe aggregate lifecycle information.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(int bindings, int queuedCallbacks, long callbackFailures, boolean closed) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbindings()Returns the value of thebindingsrecord component.longReturns the value of thecallbackFailuresrecord 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.intReturns the value of thequeuedCallbacksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(int bindings, int queuedCallbacks, long callbackFailures, boolean closed) Creates an instance of aStatusrecord class.- Parameters:
bindings- the value for thebindingsrecord componentqueuedCallbacks- the value for thequeuedCallbacksrecord componentcallbackFailures- the value for thecallbackFailuresrecord 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. -
bindings
-
queuedCallbacks
public int queuedCallbacks()Returns the value of thequeuedCallbacksrecord component.- Returns:
- the value of the
queuedCallbacksrecord component
-
callbackFailures
public long callbackFailures()Returns the value of thecallbackFailuresrecord component.- Returns:
- the value of the
callbackFailuresrecord component
-
closed
-