eclipse-ee4j / eclipse-ee4j/jersey
No API for for async context propagation in Client API
Open
client_api
enhancement
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
Currently the client offers no API for capturing calling thread context when invocations are turned into async on RX ones. ClientRequestFilters are first executed on executing thread.
Proposal:
New component that can be registered into `ClientBuilder` with roughly following API:
```
interface AsyncContextProvider {
void initAsyncContext(RequestContext asyncContext);
}
```
These providers would be looked up and invoked by `AsyncInvoker` or before turning an invocation into `RxInvoker`, to allow for capturing additional calling thread context into request context.
Contributor guide
Assessment
This issue has not been assessed yet.