Record Class PeerQuery
java.lang.Object
java.lang.Record
org.j7m.middleware.registry.api.PeerQuery
- Record Components:
registryContext- registry contextincludeDead- whether dead peers should be includedlimit- maximum peer count
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeDeadrecord component.intlimit()Returns the value of thelimitrecord component.Returns the value of theregistryContextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PeerQuery
Creates a peer query. -
PeerQuery
Creates a compatibility peer query for live peers in one context.- Parameters:
registryContext- registry context
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
registryContext
Returns the value of theregistryContextrecord component.- Returns:
- the value of the
registryContextrecord component
-
includeDead
public boolean includeDead()Returns the value of theincludeDeadrecord component.- Returns:
- the value of the
includeDeadrecord component
-
limit
-