You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `flushPolicies` |Defaultsetto `null`. <br>Thissetcustomflushpoliciestotellanalyticswhenandhowtoflush. Bydefault, itconverts `flushAt` and `flushInterval` to `CountFlushPolicy` and `FrequencyFlushPolicy`. Ifavalueisgiven, itoverwrites `flushAt` and `flushInterval`. |
70
+
| `flushPolicies` |Thedefaultissetto `null`. <br>Thissetscustomflushpoliciestotellanalytics when and how to flush. By default, it converts `flushAt` and `flushInterval` to `CountFlushPolicy` and `FrequencyFlushPolicy`. If a value is given, it overwrites `flushAt` and `flushInterval`. |
71
71
72
72
## Tracking Methods
73
73
@@ -326,10 +326,13 @@ analytics.Reset()
326
326
```
327
327
328
328
329
-
## Controlling Upload With Flush Policies
330
-
Tomoregranularlycontrol when events are uploaded you can use `FlushPolicies`. **This will override any setting on `flushAt` and `flushInterval`, but you can use `CountFlushPolicy` and `FrequencyFlushPolicy` to have the same behaviour respectively.**
329
+
## Flush policies
330
+
Tomoregranularlycontrol when events are uploaded you can use `FlushPolicies`.
331
331
332
-
AFlushPolicydefinesthestrategyfordeciding when to flush, this can be on an interval, on a certain time of day, after receiving a certain number of events or even after receiving a particular event. This gives you even more flexibility on when to send event to Segment.
332
+
>warning ""
333
+
> `FlushPolicies` overridesanysettingon `flushAt` and `flushInterval`, butyoucanuse `CountFlushPolicy` and `FrequencyFlushPolicy` tohavethesamebehavior.
OneofthemainadvantagesofFlushPoliciesisthatyoucanaddandremovepoliciesonthefly. Thisisverypowerful when you want to reduce or increase the amount of flushes.
358
+
OneofthemainadvantagesofFlushPoliciesisthatyoucanchoosetoaddandremovepolicies. Thisisverypowerful when you want to reduce or increase the amount of flushes.
0 commit comments