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
feat: TogglesCheckedListener and ReadyListener (#56)
* Add bin folder to ignore
* feat: Add two new listeners.
The TogglesCheckedListener which will be notified each time the poller
checks for updates, regardless if there are updates or not or if the
check failed.
The ReadyListener which will be notified once the RefreshPolicy
completes its initialisation process.
Adds support for pollInterval = 0 to disable polling, it will only fetch
once.
Co-authored-by: Gastón Fournier <[email protected]>
fixes: #47, #49
* @param pollRateDuration - How long (in seconds) between each poll
5
+
* @param togglesUpdatedListener - A listener that will be notified each time a poll actually updates the evaluation result
6
+
* @param erroredListener - A listener that will be notified each time a poll fails. The notification will include the Exception
7
+
* @param togglesCheckedListener - A listener that will be notified each time a poll completed. Will be called regardless of the check succeeded or failed.
8
+
* @param readyListener - A listener that will be notified after the poller is done instantiating, i.e. has an evaluation result in its cache. Each ready listener will receive only one notification
9
+
* @param pollImmediate - Set to true, the poller will immediately poll for configuration and then call the ready listener. Set to false, you will need to call [startPolling()) to actually talk to proxy/Edge
0 commit comments