Re: GracefulApplication, gracefulTerminate() and JavaMonitor
Re: GracefulApplication, gracefulTerminate() and JavaMonitor
- Subject: Re: GracefulApplication, gracefulTerminate() and JavaMonitor
- From: Paul Hoadley <email@hidden>
- Date: Wed, 15 Jun 2016 17:42:40 +0930
Hi Bogdan,On 15 Jun 2016, at 3:04 PM, Bogdan Zlatanov < email@hidden> wrote:
Just a quick suggestion regarding your comment: "we check for
outstanding scheduled Runnables and then sleep for 5 seconds".
ExecutorService exposes shutdown and awaitTermination
methods to basically do exactly what you need - graceful shutdown
of the thread pool.
Oh, thanks for that. Works perfectly.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden