Skip to content

Conversation

arturobernalg
Copy link
Member

Introduce VirtualThreadCloseableHttpClient to run classic transport on JDK 21 virtual threads while preserving CloseableHttpClient semantics and threading contract. Extend builder with useVirtualThreads(), virtualThreadNamePrefix(), virtualThreadExecutor(...), virtualThreadShutdownWait(...), and virtualThreadsRunHandler() to control execution. Add VirtualThreadSupport utility for JDK detection and per-task executor; include example and tests. Behavior remains unchanged unless enabled via the builder.

@arturobernalg arturobernalg requested a review from ok2c September 1, 2025 11:16
@arturobernalg arturobernalg changed the title TTPCLIENT-2394: Virtual threads support for classic client HTTPCLIENT-2394: Virtual threads support for classic client Sep 1, 2025
Add VirtualThreadCloseableHttpClient and builder options to run I/O (and optionally handler) on JDK 21 virtual threads.
Default behavior unchanged; classic path used when VT unavailable.
Include VirtualThreadSupport utility and example.
@arturobernalg arturobernalg force-pushed the HTTPCLIENT-2394-virtual-threads branch from 567f83d to 3c54bd2 Compare September 1, 2025 11:20
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.

2 participants