Skip navigation links

Package net.openhft.chronicle.core.shutdown

Provides classes and interfaces for handling shutdown procedures in a controlled manner.

See: Description

Package net.openhft.chronicle.core.shutdown Description

Provides classes and interfaces for handling shutdown procedures in a controlled manner.

This package includes classes for registering shutdown hooks with specific priorities, allowing for an orderly shutdown of resources. This is particularly useful in scenarios where resources need to be released or cleaned up in a specific order during the JVM shutdown phase.

Example usage:

 
     // Register a hook to be executed at priority 50.
     PriorityHook.add(50, () -> {
         // Code to execute during shutdown.
     });
 
 
See Also:
Hooklet, PriorityHook
Skip navigation links

Copyright © 2024. All rights reserved.