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
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.