Package org.zkoss.zk.ui.impl
Class ExecutionCarryOver
java.lang.Object
org.zkoss.zk.ui.impl.ExecutionCarryOver
A utility to carry over the execution to a server-push thread.
It is usually used by the implementation of
ServerPush.
How it works: First, create an instance in the event listener.
Then, you can invoke carryOver() in the server-push thread.
- Since:
- 3.0.0
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExecutionCarryOver
-
-
Method Details
-
carryOver
public void carryOver()Carry over the info stored in the constructor to the current thread. -
cleanup
public void cleanup()Cleans up the info carried from onPiggyback to the current thread.Note:
carryOver()andcleanup()must be called in the same thread.
-