org.zkoss.zk.ui.impl
Class ExecutionCarryOver

java.lang.Object
  extended by 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 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
ExecutionCarryOver(Desktop desktop)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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() and cleanup() must be called in the same thread.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo