OctaviusDispatchers
object OctaviusDispatchers
Global object providing pre-configured concurrent components optimized for database operations.
It acts as a central registry for Coroutine dispatchers and traditional Java execution primitives built on top of Project Loom's Virtual Threads (Java 21+).
Utilizing virtual threads ensures that blocking I/O calls, typical in database drivers, are handled with high scalability and performance without monopolizing expensive platform (OS) threads.
Properties
Link copied to clipboard
A global ExecutorService using Java 21+ Virtual Threads. Use this for integrating with legacy Java APIs (e.g. CompletableFuture).