Interface SignalHandler

    • Method Detail

      • handleSignal

        void handleSignal​(Signal signal)
        Handle the given signal. It is recommended that signals are handled as quickly as possible. If there is a risk that it may take a long time it is recommended to spawn a new thread and handle the signal asynchronously.
        Parameters:
        signal - The signal to handle
        Throws:
        UnsupportedSignalException - If the signal is not supported
      • getSupportedSignals

        Collection<Signal> getSupportedSignals()
        Get all signals that are supported by this handler.
        Returns:
        A collection of signals
      • supports

        boolean supports​(Signal signal)
        Check if a given signal is supported.
        Parameters:
        signal - The signal to check
        Returns:
        TRUE if the signal is supported, FALSE otherwise