NetworkConfiguration class
The master configuration for the Network Reachability Engine.
This structure is the entry point for customizing how the engine behaves. It should be initialized once and passed to the engine during startup.
- Available extensions
Constructors
-
NetworkConfiguration({required List<
NetworkTarget> targets, required BigInt checkIntervalMs, required BigInt cacheValidityMs, required QualityThresholds qualityThreshold, required SecurityConfig security, required ResilienceConfig resilience}) -
const
Properties
- cacheValidityMs → BigInt
-
Cache duration (ms) for results.
final
- checkIntervalMs → BigInt
-
Frequency (ms) of background checks.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- qualityThreshold → QualityThresholds
-
Thresholds for quality categorization.
final
- resilience → ResilienceConfig
-
Performance and resilience settings.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- security → SecurityConfig
-
Security policy settings.
final
-
targets
→ List<
NetworkTarget> -
The list of endpoints (
NetworkTargetmodels) to probe.final
Methods
-
copyWith(
{List< NetworkTarget> ? targets, BigInt? checkIntervalMs, BigInt? cacheValidityMs, QualityThresholds? qualityThreshold, SecurityConfig? security, ResilienceConfig? resilience}) → NetworkConfiguration -
Available on NetworkConfiguration, provided by the NetworkConfigurationCopyWith extension
Creates a copy of the current configuration with updated fields. -
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.
override
Static Methods
-
default_(
) → Future< NetworkConfiguration> - Standard production-ready configuration.
-
newInstance(
{required List< NetworkTarget> targets, required BigInt checkIntervalMs, required BigInt cacheValidityMs, required QualityThresholds qualityThreshold, required SecurityConfig security, required ResilienceConfig resilience}) → Future<NetworkConfiguration> -
Constructs a full
`NetworkConfiguration`.