php.java.script
Interface IContinuation

All Known Implementing Classes:
CGIRunner, Continuation, FastCGIProxy, HttpFastCGIProxy, HttpProxy

public interface IContinuation

Classes implementing this interface represent the script continuation; they can be used to allocate php scripts on a HTTP- or FastCGI server.

Author:
jostb

Method Summary
 void call(java.lang.Object script)
          The PHP script must call this function with the current continuation as an argument.
 java.lang.Object getPhpScript()
          One must call this function if one is interested in the php continuation.
 void release()
          This function must be called to release the allocated php continuation.
 

Method Detail

call

void call(java.lang.Object script)
          throws java.lang.InterruptedException
The PHP script must call this function with the current continuation as an argument.

Example:

java_context()->call(java_closure());

Parameters:
script - - The php continuation
Throws:
java.lang.InterruptedException

getPhpScript

java.lang.Object getPhpScript()
                              throws java.lang.Exception
One must call this function if one is interested in the php continuation.

Returns:
The php continuation.
Throws:
java.lang.Exception

release

void release()
             throws java.lang.InterruptedException
This function must be called to release the allocated php continuation. Note that simply calling this method does not guarantee that the script is finished, as the ContextRunner may still produce output. Use contextFactory.waitFor() to wait for the script to terminate.

Throws:
java.lang.InterruptedException