@FunctionalInterface public interface BlockingStreamingHttpService extends GracefulAutoCloseable
StreamingHttpService but with synchronous/blocking APIs instead of asynchronous APIs.| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
void |
handle(HttpServiceContext ctx,
BlockingStreamingHttpRequest request,
BlockingStreamingHttpServerResponse response)
Handles a single HTTP request.
|
closeGracefullyvoid handle(HttpServiceContext ctx, BlockingStreamingHttpRequest request, BlockingStreamingHttpServerResponse response) throws java.lang.Exception
ctx - Context of the service.request - to handle.response - to send to the client.java.lang.Exception - If an exception occurs during request processing.default void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exception