Record Class GroupAdvertisement.GossipParameters
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.api.ad.GroupAdvertisement.GossipParameters
- Record Components:
fanout- peers contacted per rumor roundperiod- gossip round period
- Enclosing class:
GroupAdvertisement
public static record GroupAdvertisement.GossipParameters(int fanout, Duration period)
extends Record
Gossip-bus parameters for a group (spec ยง5.3). The fan-out bounds how
many peers a rumor reaches per round; the period drives the group's
anti-entropy cadence. Membership views are full and leased, so there is
no partial-view size to tune (v0.1.10 removed
maxViewSize).-
Constructor Summary
ConstructorsConstructorDescriptionGossipParameters(int fanout, Duration period) Creates an instance of aGossipParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()Returns sensible defaults: fanout 3, period 1s.final booleanIndicates whether some other object is "equal to" this one.intfanout()Returns the value of thefanoutrecord component.final inthashCode()Returns a hash code value for this object.period()Returns the value of theperiodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GossipParameters
-
-
Method Details
-
defaults
Returns sensible defaults: fanout 3, period 1s. -
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. -
fanout
-
period
-