public interface BlockingStreamingHttpConnection extends BlockingStreamingHttpRequester
StreamingHttpConnection but with synchronous/blocking APIs instead of asynchronous APIs.| Modifier and Type | Method and Description |
|---|---|
default BlockingHttpConnection |
asBlockingConnection()
Convert this
BlockingStreamingHttpConnection to the BlockingHttpConnection API. |
default HttpConnection |
asConnection()
Convert this
BlockingStreamingHttpConnection to the HttpConnection API. |
StreamingHttpConnection |
asStreamingConnection()
Convert this
BlockingStreamingHttpConnection to the StreamingHttpConnection API. |
HttpConnectionContext |
connectionContext()
Get the
HttpConnectionContext. |
BlockingStreamingHttpResponse |
request(BlockingStreamingHttpRequest request)
Send a
request. |
<T> BlockingIterable<? extends T> |
transportEventIterable(HttpEventKey<T> eventKey)
Returns a
BlockingIterable that gives the current value of the setting as well as subsequent changes to
the setting value as long as the PublisherSource.Subscriber has expressed enough demand. |
close, executionContext, httpResponseFactory, requestconnect, delete, get, head, newRequest, options, patch, post, traceBlockingStreamingHttpResponse request(BlockingStreamingHttpRequest request) throws Exception
request.request - the request to send.Exception - if an exception occurs during the request processing.HttpConnectionContext connectionContext()
HttpConnectionContext.HttpConnectionContext.<T> BlockingIterable<? extends T> transportEventIterable(HttpEventKey<T> eventKey)
BlockingIterable that gives the current value of the setting as well as subsequent changes to
the setting value as long as the PublisherSource.Subscriber has expressed enough demand.
This is designed for events produced by the transport, and consumed by filters interested in transport behavior which is not directly involved in the data path.
T - Type of the setting value.eventKey - Name of the event to fetch.BlockingIterable for the setting values.StreamingHttpConnection asStreamingConnection()
BlockingStreamingHttpConnection to the StreamingHttpConnection API.
Note that the resulting StreamingHttpConnection may still be subject to any blocking, in memory
aggregation, and other behavior as this BlockingStreamingHttpConnection.
StreamingHttpConnection representation of this BlockingStreamingHttpConnection.default HttpConnection asConnection()
BlockingStreamingHttpConnection to the HttpConnection API.
Note that the resulting HttpConnection may still be subject to any blocking, in memory
aggregation, and other behavior as this BlockingStreamingHttpConnection.
HttpConnection representation of this BlockingStreamingHttpConnection.default BlockingHttpConnection asBlockingConnection()
BlockingStreamingHttpConnection to the BlockingHttpConnection API.
Note that the resulting BlockingHttpConnection may still be subject to in memory
aggregation and other behavior as this BlockingStreamingHttpConnection.
BlockingHttpConnection representation of this
BlockingStreamingHttpConnection.