public interface BlockingStreamingHttpClient extends BlockingStreamingHttpRequester
StreamingHttpClient but with synchronous/blocking APIs instead of asynchronous APIs.| Modifier and Type | Method and Description |
|---|---|
default BlockingHttpClient |
asBlockingClient()
Convert this
BlockingStreamingHttpClient to the BlockingHttpClient API. |
default HttpClient |
asClient()
Convert this
BlockingStreamingHttpClient to the HttpClient API. |
StreamingHttpClient |
asStreamingClient()
Convert this
BlockingStreamingHttpClient to the StreamingHttpClient API. |
ReservedBlockingStreamingHttpConnection |
reserveConnection(HttpRequestMetaData metaData)
Reserve a
BlockingStreamingHttpConnection based on provided HttpRequestMetaData. |
close, executionContext, httpResponseFactory, requestReservedBlockingStreamingHttpConnection reserveConnection(HttpRequestMetaData metaData) throws Exception
BlockingStreamingHttpConnection based on provided HttpRequestMetaData.metaData - Allows the underlying layers to know what BlockingStreamingHttpConnections are valid to
reserve for future requests with the same HttpRequestMetaData.
For example this may provide some insight into shard or other info.ReservedBlockingStreamingHttpConnection.Exception - if a exception occurs during the reservation process.StreamingHttpClient asStreamingClient()
BlockingStreamingHttpClient to the StreamingHttpClient API.
Note that the resulting StreamingHttpClient may still be subject to any blocking, in memory aggregation,
and other behavior as this BlockingStreamingHttpClient.
StreamingHttpClient representation of this BlockingStreamingHttpClient.default HttpClient asClient()
BlockingStreamingHttpClient to the HttpClient API.
Note that the resulting HttpClient may still be subject to any blocking, in memory aggregation,
and other behavior as this BlockingStreamingHttpClient.
HttpClient representation of this BlockingStreamingHttpClient.default BlockingHttpClient asBlockingClient()
BlockingStreamingHttpClient to the BlockingHttpClient API.
Note that the resulting BlockingHttpClient may still be subject to in memory
aggregation and other behavior as this BlockingStreamingHttpClient.
BlockingHttpClient representation of this BlockingStreamingHttpClient.