Class ExecutionCarryOver

java.lang.Object
org.zkoss.zk.ui.impl.ExecutionCarryOver

public class ExecutionCarryOver extends 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 Details

    • ExecutionCarryOver

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