Record Class DiscoveryOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.registry.api.DiscoveryOptions
- Record Components:
contextId- registry context/application scopedeadline- maximum operation durationmaxResults- maximum records to returnmaxPeers- maximum peers to contactmaxDepth- maximum bootstrap expansion depth
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryOptions(String contextId, Duration deadline, int maxResults, int maxPeers, int maxDepth) Creates bounded discovery options. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextIdrecord component.deadline()Returns the value of thedeadlinerecord component.static DiscoveryOptionsdefaults()Returns default Phase 2 discovery options.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxDepth()Returns the value of themaxDepthrecord component.intmaxPeers()Returns the value of themaxPeersrecord component.intReturns the value of themaxResultsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiscoveryOptions
-
-
Method Details
-
defaults
Returns default Phase 2 discovery options.- Returns:
- default options
-
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. -
contextId
-
deadline
-
maxResults
public int maxResults()Returns the value of themaxResultsrecord component.- Returns:
- the value of the
maxResultsrecord component
-
maxPeers
-
maxDepth
-