LoggingShutdownHookProcessDestroyer

public class LoggingShutdownHookProcessDestroyer extends ShutdownHookProcessDestroyer

Extension of ShutdownHookProcessDestroyer that logs when the JVM is shutting down and about to destroy registered processes.

This class behaves exactly like the base implementation, except that it emits a log message via SLF4J before delegating to run.

It is used by ManagedProcess when isDestroyOnShutdown is enabled to ensure graceful cleanup and clear visibility in logs whenever the JVM terminates while managed processes are still running.

See also

ShutdownHookProcessDestroyer

Constructors

Link copied to clipboard
Creates a new instance of this process destroyer.

Functions

Link copied to clipboard
public boolean add(Process process)
Link copied to clipboard
public boolean isAddedAsShutdownHook()
Link copied to clipboard
public boolean isEmpty()
Link copied to clipboard
public boolean remove(Process process)
Link copied to clipboard
public void run()
Link copied to clipboard
public int size()