public interface BlockingStreamingHttpClient extends BlockingStreamingHttpRequester
StreamingHttpClient but with synchronous/blocking APIs instead of asynchronous APIs.close, executionContext, httpResponseFactory, requestBlockingStreamingHttpResponse request(BlockingStreamingHttpRequest request) throws Exception
request.request in interface BlockingStreamingHttpRequesterrequest - the request to send.Exception - if an exception occurs during the request processing.ReservedBlockingStreamingHttpConnection 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.@Deprecated default ReservedBlockingStreamingHttpConnection reserveConnection(HttpExecutionStrategy strategy, HttpRequestMetaData metaData) throws Exception
reserveConnection(HttpRequestMetaData). If an HttpExecutionStrategy needs to be
altered, provide a value for HttpContextKeys.HTTP_EXECUTION_STRATEGY_KEY in the
request context.BlockingStreamingHttpConnection based on provided HttpRequestMetaData.strategy - HttpExecutionStrategy to use.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 an 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.