Today I come across ScheduledExecutorService while studying runnable.
But, I can't or rather I don't have a chance to know how on earth this ScheduledExecutorService is being used in a java web app environment ?
Nothing beyond Java 8 please. But, anything that is beyond Java 8 but useful, please also let me know. Thanks.
Would it be possible to trigger some kind of notification or alert me when the site is down like for example, if I don't check the website and then it is down with maintenance like 503 error then a mail will be sent to me like that.
Hope someone can share with me more how it is used in the real world.