-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detecting timeouts when a service stops #343
Conversation
threadPoolExecutor.shutdown(); | ||
if( threadPoolExecutor != null ) { | ||
threadPoolExecutor.shutdown(); | ||
} | ||
} | ||
|
||
public Future<?> submit( Runnable func ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jdoc. Submit what for what?
@@ -284,26 +295,29 @@ public synchronized void stop( String serviceName ) { | |||
} | |||
|
|||
public static class ShutdownConfiguration implements Closeable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jdoc - please put in a different file
@@ -88,6 +88,7 @@ public class Kernel implements Closeable, AutoCloseable { | |||
final String name; | |||
private final List<URL> moduleConfigurations; | |||
private final Supervisor supervisor = new Supervisor(); | |||
private ApplicationConfiguration applicationConfiguration = new ApplicationConfiguration(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please explain more in detail each of
* APPLICATION_STOP_DETECT_TIMEOUT - default 5s
* APPLICATION_FORCE_ASYNC_AFTER_TIMEOUT - default false
Maybe explain the whole flow and how each of the these will be used.
No description provided.