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

public interface Shutdownable extends Runnable
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 Type
    Method
    Description
    void
    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.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • addMeAsShutdownHook

      @Description("to register monitor as shutdown hook") void addMeAsShutdownHook()
      To be able to register the instance as shutdown hook you can use this (non static) method.
    • removeMeAsShutdownHook

      @Description("to de-register monitor as shutdown hook") void removeMeAsShutdownHook()
      If you want to unregister the instance as shutdown hook you can use this method.
    • isShutdownHook

      @Description("returns true if monitor was registered as shutdown hook") boolean isShutdownHook()
      Here you can ask if the instance was already registeres ad shutdown hook.
      Returns:
      true if it is registered as shutdown hook.