|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventThreadSuspend
Used to listen when the event processing thread is going to suspend.
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |