@@ -36,6 +36,7 @@ part 'src/network/options.dart';
3636part 'src/network/parse_client.dart' ;
3737part 'src/network/parse_connectivity.dart' ;
3838part 'src/network/parse_live_query.dart' ;
39+ part 'src/network/parse_network_retry.dart' ;
3940part 'src/network/parse_query.dart' ;
4041part 'src/objects/parse_acl.dart' ;
4142part 'src/objects/parse_array.dart' ;
@@ -100,6 +101,18 @@ class Parse {
100101 /// debug: true,
101102 /// liveQuery: true);
102103 /// ```
104+ ///
105+ /// Parameters:
106+ ///
107+ /// * [restRetryIntervals] - Optional list of retry delay intervals (in milliseconds)
108+ /// for read operations. Applies to: GET, DELETE, and getBytes methods.
109+ /// Defaults to [0, 250, 500, 1000, 2000] .
110+ /// * [restRetryIntervalsForWrites] - Optional list of retry delay intervals for
111+ /// write operations. Applies to: POST, PUT, and postBytes methods.
112+ /// Defaults to [] (no retries) to prevent duplicate data creation.
113+ /// Configure only if you have idempotency guarantees in place.
114+ /// * [liveListRetryIntervals] - Optional list of retry delay intervals for
115+ /// LiveQuery operations.
103116 Future <Parse > initialize (
104117 String appId,
105118 String serverUrl, {
@@ -118,6 +131,8 @@ class Parse {
118131 Map <String , ParseObjectConstructor >? registeredSubClassMap,
119132 ParseUserConstructor ? parseUserConstructor,
120133 ParseFileConstructor ? parseFileConstructor,
134+ List <int >? restRetryIntervals,
135+ List <int >? restRetryIntervalsForWrites,
121136 List <int >? liveListRetryIntervals,
122137 ParseConnectivityProvider ? connectivityProvider,
123138 String ? fileDirectory,
@@ -144,6 +159,8 @@ class Parse {
144159 registeredSubClassMap: registeredSubClassMap,
145160 parseUserConstructor: parseUserConstructor,
146161 parseFileConstructor: parseFileConstructor,
162+ restRetryIntervals: restRetryIntervals,
163+ restRetryIntervalsForWrites: restRetryIntervalsForWrites,
147164 liveListRetryIntervals: liveListRetryIntervals,
148165 connectivityProvider: connectivityProvider,
149166 fileDirectory: fileDirectory,
0 commit comments