Interface EventLoopVirtualThreadScheduler
Scheduler for a virtual thread, with metadata. Does not change throughout a virtual thread's
lifetime. This class allows for creating local shared resources, e.g. HTTP connections that
run on the same event loop.
- Since:
- 4.9.0
- Author:
- Jonas Konrad
-
Method Summary
-
Method Details
-
attributeMap
Get a sharedAttributeMap
for this scheduler.- Returns:
- The attribute map
-
eventLoop
Get the event loop that runs on this scheduler.- Returns:
- The event loop
-
current
Get the virtual thread scheduler of the current thread, if available.- Returns:
- The current scheduler or
null
-