IdConflictResolver class
Service for resolving ID conflicts during server ID negotiation.
This service handles complex scenarios that arise when server-assigned IDs conflict with existing local data or when multiple concurrent operations attempt to modify the same resources.
Constructors
- IdConflictResolver(GeneratedDatabase _db)
- Creates a new IdConflictResolver instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
resolveIdConflict(
{required String temporaryId, required String proposedServerId, required String modelType, int retryCount = 0}) → Future< String> - Resolves ID conflicts that may occur during server ID negotiation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- conflictResolutionTimeout → const Duration
- Timeout duration for ID conflict resolution operations
- maxRetryAttempts → const int
- Maximum number of retry attempts for ID conflict resolution