Switch to desktop version  
RuntimeControl.refreshWatchdog() understanding - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: Java (https://techforum.ewon.biz/forum-53.html)
+--- Thread: RuntimeControl.refreshWatchdog() understanding (/thread-2752.html)



RuntimeControl.refreshWatchdog() understanding - ZillKhan - 02-06-2025

Hello,
I want to understand the working of RuntimeControl.refreshWatchdog();
I am using Java to program eWON for my application.
In my Java client application I set the watchdog timeout using this:
RuntimeControl.configureAppWatchdog(60000); // timeout set to 60sec - assuming its timeout is in milisecond

Then, in my application while loop, I run this every 30 seconds.
[font=Consolas, 'Courier New', monospace]if (currentTime - startTime >= RESTART_TIME_THRESHOLD) {
                Log.info("Refreshing Watchdog timer!");
                RuntimeControl.refreshWatchdog();
                startTime = currentTime;
            }
[/font]


Can you please confirm it's working and also provide any reference documentation for looking into this API in detail.





RE: RuntimeControl.refreshWatchdog() understanding - ZillKhan - 10-06-2025

Hello,
Any update on this?