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
When ticker mode is **false** the `ScheduledDataLoaderRegistry` algorithm is as follows :
659
+
660
+
* Nothing starts scheduled - some code must call `registry.dispatchAll()` a first time
661
+
* Then for every `DataLoader` in the registry
662
+
* The `DispatchPredicate` is called to test if the data loader should be dispatched
663
+
* if it returns **false** then a task is scheduled to re-evaluate this specific dataloader in the near future
664
+
* If it returns **true**, then `dataLoader.dispatch()` is called and the dataloader is not rescheduled again
665
+
* The re-evaluation tasks are run periodically according to the `registry.getScheduleDuration()`
666
+
667
+
When ticker mode is **true** the `ScheduledDataLoaderRegistry` algorithm is as follows:
668
+
669
+
* Nothing starts scheduled - some code must call `registry.dispatchAll()` a first time
670
+
* Then for every `DataLoader` in the registry
671
+
* The `DispatchPredicate` is called to test if the data loader should be dispatched
672
+
* if it returns **false** then a task is scheduled to re-evaluate this specific dataloader in the near future
673
+
* If it returns **true**, then `dataLoader.dispatch()` is called **and** a task is scheduled to re-evaluate this specific dataloader in the near future
674
+
* The re-evaluation tasks are run periodically according to the `registry.getScheduleDuration()`
Copy file name to clipboardExpand all lines: src/main/java/org/dataloader/registries/ScheduledDataLoaderRegistry.java
+74-28
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,31 @@
25
25
* This will continue to loop (test false and reschedule) until such time as the predicate returns true, in which case
26
26
* no rescheduling will occur, and you will need to call dispatch again to restart the process.
27
27
* <p>
28
+
* In the default mode, when {@link #tickerMode} is false, the registry will continue to loop (test false and reschedule) until such time as the predicate returns true, in which case
29
+
* no rescheduling will occur, and you will need to call dispatch again to restart the process.
30
+
* <p>
31
+
* However, when {@link #tickerMode} is true, the registry will always reschedule continuously after the first ever call to {@link #dispatchAll()}.
32
+
* <p>
33
+
* This will allow you to chain together {@link DataLoader} load calls like this :
0 commit comments