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. |
BlockingStreamingHttpResponse |
request(BlockingStreamingHttpRequest request)
Send a
request . |
ReservedBlockingStreamingHttpConnection |
reserveConnection(HttpExecutionStrategy strategy,
HttpRequestMetaData metaData)
Reserve a
BlockingStreamingHttpConnection based on provided HttpRequestMetaData . |
ReservedBlockingStreamingHttpConnection |
reserveConnection(HttpRequestMetaData metaData)
Reserve a
BlockingStreamingHttpConnection based on provided HttpRequestMetaData . |
close, executionContext, httpResponseFactory, request
connect, delete, get, head, newRequest, options, patch, post, trace
closeGracefully
BlockingStreamingHttpResponse request(BlockingStreamingHttpRequest request) throws java.lang.Exception
request
.request
- the request to send.java.lang.Exception
- if an exception occurs during the request processing.ReservedBlockingStreamingHttpConnection reserveConnection(HttpRequestMetaData metaData) throws java.lang.Exception
BlockingStreamingHttpConnection
based on provided HttpRequestMetaData
.metaData
- Allows the underlying layers to know what BlockingStreamingHttpConnection
s are valid to
reserve for future requests
with the same HttpRequestMetaData
.
For example this may provide some insight into shard or other info.ReservedBlockingStreamingHttpConnection
.java.lang.Exception
- if a exception occurs during the reservation process.ReservedBlockingStreamingHttpConnection reserveConnection(HttpExecutionStrategy strategy, HttpRequestMetaData metaData) throws java.lang.Exception
BlockingStreamingHttpConnection
based on provided HttpRequestMetaData
.strategy
- HttpExecutionStrategy
to use.metaData
- Allows the underlying layers to know what BlockingStreamingHttpConnection
s are valid to
reserve for future requests
with the same HttpRequestMetaData
.
For example this may provide some insight into shard or other info.ReservedBlockingStreamingHttpConnection
.java.lang.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
.