public interface EventThreadSuspend
How this interface is used.
beforeSuspend(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event, java.lang.Object)
is invoked, before the thread is going to suspend.
If beforeSuspend(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event, java.lang.Object)
throws a exception, the thread won't
be suspended.Modifier and Type | Method and Description |
---|---|
void |
afterSuspend(Component comp,
Event evt)
Called in the servlet thread after the event processing thread has been
suspended.
|
void |
beforeSuspend(Component comp,
Event evt,
java.lang.Object obj)
Called before the event processing thread is suspended.
|
void beforeSuspend(Component comp, Event evt, java.lang.Object obj) throws java.lang.Exception
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.
obj
- which object that Executions.wait(java.lang.Object)
is called with.java.lang.Exception
- preventing the thread from suspending.void afterSuspend(Component comp, Event evt) throws java.lang.Exception
Unlike beforeSuspend(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event, java.lang.Object)
, any exception thrown by this method
are simply logged and ignored.
java.lang.Exception
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.