SyncTimeoutOptions class final
Options for configuring timeouts and intervals used by the sync client.
- Annotations
-
- @immutable
Constructors
- SyncTimeoutOptions({Duration connectTimeout = const Duration(minutes: 2), Duration connectionLingerTime = const Duration(seconds: 30), Duration pingKeepAlivePeriod = const Duration(minutes: 1), Duration pongKeepAliveTimeout = const Duration(minutes: 2), Duration fastReconnectLimit = const Duration(minutes: 1)})
-
const
Properties
- connectionLingerTime → Duration
-
Controls the amount of time to keep a connection open after all
sessions have been abandoned.
final
- connectTimeout → Duration
-
Controls the maximum amount of time to allow for a connection to
become fully established.
final
- fastReconnectLimit → Duration
-
Controls the maximum amount of time since the loss of a
prior connection, for a new connection to be considered a "fast
reconnect".
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pingKeepAlivePeriod → Duration
-
Controls how long to wait between each heartbeat ping message.
final
- pongKeepAliveTimeout → Duration
-
Controls how long to wait for a reponse to a heartbeat ping before
concluding that the connection has dropped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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