All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.soluble.pjb.script.IContinuation Maven / Gradle / Ivy

There is a newer version: 7.1.3
Show newest version
package io.soluble.pjb.script;

/**
 * Classes implementing this interface represent the script continuation;
 * they can be used to allocate php scripts on a HTTP- or FastCGI server.
 *
 * @author jostb
 */
public interface IContinuation {

    /**
     * The PHP script must call this function with the current
     * continuation as an argument.

*

* Example:

* * java_context()->call(java_closure());
*
* * @param script - The php continuation * @throws InterruptedException */ public void call(Object script) throws InterruptedException; /** * One must call this function if one is interested in the php continuation. * * @return The php continuation. * @throws Exception */ public Object getPhpScript() throws Exception; /** * 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 InterruptedException */ public void release() throws InterruptedException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy