Package org.zkoss.zk.ui.impl
Class ExecutionCarryOver
- java.lang.Object
-
- org.zkoss.zk.ui.impl.ExecutionCarryOver
-
public class ExecutionCarryOver extends java.lang.Object
A utility to carry over the execution to a server-push thread. It is usually used by the implementation ofServerPush
.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 Constructor Description ExecutionCarryOver(Desktop desktop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
carryOver()
Carry over the info stored in the constructor to the current thread.void
cleanup()
Cleans up the info carried from onPiggyback to the current thread.
-
-
-
Constructor Detail
-
ExecutionCarryOver
public ExecutionCarryOver(Desktop desktop)
-
-
Method Detail
-
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.
-
-