• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

How can I use ScheduledExecutorService in Java Web App ?

Ranch Hand
Posts: 929
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Possible ?

Hope someone can share with me more how it is used in the real world.

Thanks alot!
Saloon Keeper
Posts: 7488
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, you can't implement a check of whether a site is down within the site itself, for obvious reasons :-)

I habe used services like Pingdom for liveness checks; they used to have a free basic service. I'm sure there are others as well.

Update: it seems that Pingdom no longer has a free tier, but you may find others searching for "website monitoring" or some such phrase.
What's brown and sticky? ... a stick. Or a tiny ad.
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic