BackoffDiscovery class
BackoffDiscovery is an implementation of discovery that caches peer data and attenuates repeated queries
- Implemented types
Constructors
- BackoffDiscovery.new(Discovery _disc, BackoffFactory _stratFactory, {int parallelBufferSize = 32, int returnedBufferSize = 32, Clock? clock})
- Creates a new BackoffDiscovery
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
advertise(
String ns, [List< DiscoveryOption> options = const []]) → Future<Duration> -
Advertises a service
override
-
findPeers(
String ns, [List< DiscoveryOption> options = const []]) → Future<Stream< AddrInfo> > -
Discovers peers providing a service
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited