public interface StreamingHttpConnection extends FilterableStreamingHttpConnection, GracefulAutoCloseable
HttpConnection but that accepts StreamingHttpRequest and returns
StreamingHttpResponse.| Modifier and Type | Method and Description |
|---|---|
BlockingHttpConnection |
asBlockingConnection()
Convert this
StreamingHttpConnection to the BlockingHttpConnection API. |
BlockingStreamingHttpConnection |
asBlockingStreamingConnection()
Convert this
StreamingHttpConnection to the BlockingStreamingHttpConnection API. |
HttpConnection |
asConnection()
Convert this
StreamingHttpConnection to the HttpConnection API. |
default void |
close() |
default void |
closeGracefully() |
connectionContext, transportEventStreamexecutionContext, httpResponseFactory, requestHttpConnection asConnection()
StreamingHttpConnection to the HttpConnection API.
This API is provided for convenience. It is recommended that
filters are implemented using the StreamingHttpConnection asynchronous API for maximum portability.
HttpConnection representation of this StreamingHttpConnection.BlockingStreamingHttpConnection asBlockingStreamingConnection()
StreamingHttpConnection to the BlockingStreamingHttpConnection API.
This API is provided for convenience for a more familiar sequential programming model. It is recommended that
filters are implemented using the StreamingHttpConnection asynchronous API for maximum portability.
BlockingStreamingHttpConnection representation of this StreamingHttpConnection.BlockingHttpConnection asBlockingConnection()
StreamingHttpConnection to the BlockingHttpConnection API.
This API is provided for convenience for a more familiar sequential programming model. It is recommended that
filters are implemented using the StreamingHttpConnection asynchronous API for maximum portability.
BlockingHttpConnection representation of this StreamingHttpConnection.default void close()
throws Exception
close in interface AutoCloseableExceptiondefault void closeGracefully()
throws Exception
closeGracefully in interface GracefulAutoCloseableException