Reprovider class

Periodic service that re-announces local content to the DHT.

Supports the strategies defined in REPROVIDE_SPEC.md: pinned, roots, all, pinned+mfs, unique, and entities.

Constructors

Reprovider({required DHTConfig config, required IDHTHandler dhtHandler, required PinManager pinManager, required MFSManager mfsManager, MetricsCollector? metrics})
Creates a new Reprovider.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isPaused → bool
Whether the reprovider has been paused (e.g. by mobile lifecycle management).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getStatus() → ReproviderStatus
Returns the current status of the reprovider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses the periodic reprovide timer without clearing historical state.
resume() → void
Resumes the periodic reprovider timer if enabled in configuration.
setStrategy(String strategy) → void
Changes the active strategy after validating it.
start() → Future<void>
Starts the periodic reprovider timer.
stop() → Future<void>
Stops the periodic timer and waits for any in-flight run.
toString() → String
A string representation of this object.
inherited
trigger({bool wait = false}) → Future<ReproviderResult>
Manually triggers a reprovide run.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

supportedStrategies → const List<String>
Supported reprovide strategy names.