Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not create a connector multiple times for each rx() call #4705

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

jansupol
Copy link
Contributor

Priority is to use @ClientAsyncExecutor annotated ExecutorServiceProvider

Signed-off-by: jansupol jan.supol@oracle.com

Priority is to use @ClientAsyncExecutor annotated ExecutorServiceProvider

Signed-off-by: jansupol <jan.supol@oracle.com>
@jansupol
Copy link
Contributor Author

The change from request().getClientConfig().executorService(provided); to ((ClientConfig) request().getConfiguration()).executorService(provided); itself causes the Connector is not recreated, as it keeps the inner State.

The other JerseyInvocation changes prioritize user provided @ClientAsyncExecutor annotated ExecutorServiceProvider over another user provided ExecutorServiceProvider.

@jansupol
Copy link
Contributor Author

jansupol commented Feb 3, 2021

Fixes #4683

@jansupol jansupol merged commit d956c52 into eclipse-ee4j:master Feb 11, 2021
@jansupol jansupol deleted the j4683 branch February 11, 2021 16:24
@jansupol jansupol self-assigned this Feb 11, 2021
@jansupol jansupol added this to the 2.34 milestone Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants