Record Class PolledBindingCandidateSource.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.PolledBindingCandidateSource.Status
- Record Components:
subscriptions- currently registered watcherspolls- completed poll attemptsfailures- failed/non-authoritative poll attemptsclosed- whether the source owner has closed
- Enclosing class:
PolledBindingCandidateSource
public static record PolledBindingCandidateSource.Status(int subscriptions, long polls, long failures, boolean closed)
extends Record
Aggregate source state, without references, caller identity or payloads.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(int subscriptions, long polls, long failures, boolean closed) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanclosed()Returns the value of theclosedrecord 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.longpolls()Returns the value of thepollsrecord component.intReturns the value of thesubscriptionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(int subscriptions, long polls, long failures, boolean closed) Creates an instance of aStatusrecord class.- Parameters:
subscriptions- the value for thesubscriptionsrecord componentpolls- the value for thepollsrecord 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. -
subscriptions
public int subscriptions()Returns the value of thesubscriptionsrecord component.- Returns:
- the value of the
subscriptionsrecord component
-
polls
-
failures
-
closed
-