Interface Shutdownable
- All Superinterfaces:
Runnable
- All Known Subinterfaces:
AbstractMonitorMBean
,ClasspathMonitorMBean
,ClazzStatisticMBean
,ConnectionMonitorMBean
,ResourcepathMonitorMBean
- All Known Implementing Classes:
AbstractMonitor
,AbstractStatistic
,ClasspathMonitor
,ClazzStatistic
,ConnectionMonitor
,ResourcepathMonitor
,Shutdowner
,SqlStatistic
With Shutownable this class can be marked which can be registered as
shutdonw hook.
- Since:
- 2.3 (28.11.24)
- Author:
- oboehm
-
Method Summary
Modifier and TypeMethodDescriptionvoid
To be able to register the instance as shutdown hook you can use this (non static) method.boolean
Here you can ask if the instance was already registeres ad shutdown hook.void
If you want to unregister the instance as shutdown hook you can use this method.
-
Method Details
-
addMeAsShutdownHook
To be able to register the instance as shutdown hook you can use this (non static) method. -
removeMeAsShutdownHook
If you want to unregister the instance as shutdown hook you can use this method. -
isShutdownHook
Here you can ask if the instance was already registeres ad shutdown hook.- Returns:
- true if it is registered as shutdown hook.
-