Interface EventThreadSuspend

    • Method Detail

      • beforeSuspend

        void beforeSuspend​(Component comp,
                           Event evt,
                           java.lang.Object obj)
                    throws java.lang.Exception
        Called before the event processing thread is suspended. It is called in the context of the event processing thread.

        If developers want to disable the suspend/resume feature or to limit number of suspended thread, they could throw an exception to prevent the event thread from suspending.

        Parameters:
        obj - which object that Executions.wait(java.lang.Object) is called with.
        Throws:
        java.lang.Exception - preventing the thread from suspending.