io.datawire.quark.runtime.Runtime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quark-core Show documentation
Show all versions of quark-core Show documentation
Quark compiler generates code against this runtime api
package io.datawire.quark.runtime;
public interface Runtime {
void acquire();
void release();
void wait(Double timeoutInSeconds);
void open(String url, WSHandler handler);
void request(HTTPRequest request, HTTPHandler handler);
void schedule(Task handler, Double delayInSeconds);
Codec codec();
void serveHTTP(String url, HTTPServlet servlet);
void serveWS(String url, WSServlet server);
void respond(HTTPRequest request, HTTPResponse response);
void fail(String message);
}