Skip to content
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

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

nofateg
Copy link
Contributor

@nofateg nofateg commented Nov 4, 2024

No description provided.

threadPoolExecutor.shutdown();
if( threadPoolExecutor != null ) {
threadPoolExecutor.shutdown();
}
}

public Future<?> submit( Runnable func ) {
Copy link
Member

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 {
Copy link
Member

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();
Copy link
Member

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.

@nofateg nofateg merged commit 939b554 into master Nov 5, 2024
2 checks passed
@nofateg nofateg deleted the detecting-timeouts-when-a-service-stops branch November 5, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants