eclipse-ee4j / eclipse-ee4j/jersey

No API for for async context propagation in Client API

Open
#4,267 4 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.