SFClientConfig class
Configuration for S&F client
Constructors
-
SFClientConfig({List<
SFServerPreference> preferredServers = const [], bool enableAutoRetrieval = false, Duration retrievalInterval = const Duration(minutes: 1), int maxRetries = 3, Duration connectionTimeout = const Duration(seconds: 10), Duration messageTimeout = const Duration(seconds: 30), Duration initialRetryDelay = const Duration(seconds: 1), Duration maxRetryDelay = const Duration(seconds: 30)}) -
const
- SFClientConfig.defaults()
-
Create default configuration
factory
-
SFClientConfig.withAutoRetrieval({required List<
SFServerPreference> servers, Duration retrievalInterval = const Duration(minutes: 1)}) -
Create configuration with auto-retrieval enabled
factory
-
SFClientConfig.withServers(List<
SFServerPreference> servers) -
Create configuration with specific servers
factory
Properties
- connectionTimeout → Duration
-
Connection timeout
final
- enableAutoRetrieval → bool
-
Enable automatic message retrieval
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialRetryDelay → Duration
-
Initial retry delay (exponential backoff)
final
- maxRetries → int
-
Maximum retry attempts for failed operations
final
- maxRetryDelay → Duration
-
Maximum retry delay
final
- messageTimeout → Duration
-
Message operation timeout
final
-
preferredServers
→ List<
SFServerPreference> -
Preferred S&F servers (MX-like)
final
- retrievalInterval → Duration
-
Interval between automatic retrieval attempts
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{List< SFServerPreference> ? preferredServers, bool? enableAutoRetrieval, Duration? retrievalInterval, int? maxRetries, Duration? connectionTimeout, Duration? messageTimeout, Duration? initialRetryDelay, Duration? maxRetryDelay}) → SFClientConfig - Copy with modifications
-
isValid(
) → bool - Validate configuration
-
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