GossipConfig class
Gossip protocol configuration
Constructors
- GossipConfig({Duration gossipInterval = const Duration(milliseconds: 100), int fanout = 3, Duration failureTimeout = const Duration(seconds: 30), Duration suspectTimeout = const Duration(seconds: 10), int maxMessageSize = 1024 * 1024, int maxMembershipSize = 1000, bool enableAntiEntropy = true, Duration antiEntropyInterval = const Duration(seconds: 60)})
-
const
- GossipConfig.largeNetwork()
-
Creates configuration with recommended settings for large networks
factory
- GossipConfig.smallNetwork()
-
Creates configuration with recommended settings for small networks
factory
Properties
- antiEntropyInterval → Duration
-
final
- enableAntiEntropy → bool
-
final
- failureTimeout → Duration
-
final
- fanout → int
-
final
- gossipInterval → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxMembershipSize → int
-
final
- maxMessageSize → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suspectTimeout → Duration
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited