Record Class BootstrapRegistryOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.registry.bootstrap.BootstrapRegistryOptions
- Record Components:
registryId- local registry idcontextId- registry contextbootstrapEndpoints- initial endpoint hintsdeadline- maximum query durationmaxDepth- maximum peer expansion depthmaxContactedPeers- maximum contacted peersmaxCandidates- maximum candidatescacheTtl- lookup/list cache TTLresolver- endpoint resolver
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapRegistryOptions(String registryId, String contextId, List<String> bootstrapEndpoints, Duration deadline, int maxDepth, int maxContactedPeers, int maxCandidates, Duration cacheTtl, BootstrapEndpointResolver resolver) Creates immutable bootstrap options. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebootstrapEndpointsrecord component.cacheTtl()Returns the value of thecacheTtlrecord component.Returns the value of thecontextIdrecord component.deadline()Returns the value of thedeadlinerecord 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 themaxCandidatesrecord component.intReturns the value of themaxContactedPeersrecord component.intmaxDepth()Returns the value of themaxDepthrecord component.Returns the value of theregistryIdrecord component.resolver()Returns the value of theresolverrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BootstrapRegistryOptions
-
-
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. -
registryId
Returns the value of theregistryIdrecord component.- Returns:
- the value of the
registryIdrecord component
-
contextId
-
bootstrapEndpoints
Returns the value of thebootstrapEndpointsrecord component.- Returns:
- the value of the
bootstrapEndpointsrecord component
-
deadline
-
maxDepth
-
maxContactedPeers
public int maxContactedPeers()Returns the value of themaxContactedPeersrecord component.- Returns:
- the value of the
maxContactedPeersrecord component
-
maxCandidates
public int maxCandidates()Returns the value of themaxCandidatesrecord component.- Returns:
- the value of the
maxCandidatesrecord component
-
cacheTtl
-
resolver
-