Polishing contribution
Closes gh-30403
This commit is contained in:
@@ -497,10 +497,12 @@ Annotated, HTTP exchange methods support the following return values:
|
||||
TIP: You can also use any other async or reactive types registered in the
|
||||
`ReactiveAdapterRegistry`.
|
||||
|
||||
TIP: For non-reactive types, blocking from a reactive publisher is performed
|
||||
under the hood by the framework. By default, it is done without a timeout.
|
||||
You can set a timeout for blocking by calling `blockTimeout(Duration blockTimeout)`
|
||||
on `HttpServiceProxyFactory.Builder`.
|
||||
By default, the behavior of HTTP service methods with synchronous (blocking) method
|
||||
signature depends on connection and timeout settings of the underlying HTTP client.
|
||||
`HttpServiceProxyFactory.Builder` does expose a `blockTimeout` option that also lets you
|
||||
configure the maximum time to block for a response, but we recommend configuring timeout
|
||||
values directly on the underlying HTTP client, which likely provides more control over
|
||||
such settings.
|
||||
|
||||
|
||||
[[rest-http-interface-exceptions]]
|
||||
|
||||
@@ -1064,7 +1064,9 @@ Annotated, RSocket exchange methods support return values that are concrete valu
|
||||
any producer of value(s) that can be adapted to a Reactive Streams `Publisher` via
|
||||
`ReactiveAdapterRegistry`.
|
||||
|
||||
TIP: For non-reactive types, blocking from a reactive publisher is performed
|
||||
under the hood by the framework. By default, it is done without a timeout.
|
||||
You can set a timeout for blocking by calling `blockTimeout(Duration blockTimeout)`
|
||||
on `RSocketServiceProxyFactory.Builder`.
|
||||
By default, the behavior of RSocket service methods with synchronous (blocking) method
|
||||
signature depends on response timeout settings of the underlying RSocket `ClientTransport`
|
||||
as well as RSocket keep-alive settings. `RSocketServiceProxyFactory.Builder` does expose a
|
||||
`blockTimeout` option that also lets you configure the maximum time to block for a response,
|
||||
but we recommend configuring timeout values at the RSocket level for more control.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user