Interface EventLoopVirtualThreadScheduler
- All Superinterfaces:
Executor
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
-
Method Summary
Modifier and TypeMethodDescription@NonNull io.netty.util.AttributeMapGet a sharedAttributeMapfor this scheduler.@NonNull io.netty.util.concurrent.EventExecutorGet the event loop that runs on this scheduler.
-
Method Details
-
attributeMap
@NonNull @NonNull io.netty.util.AttributeMap attributeMap()Get a sharedAttributeMapfor this scheduler.- Returns:
- The attribute map
-
eventLoop
@NonNull @NonNull io.netty.util.concurrent.EventExecutor eventLoop()Get the event loop that runs on this scheduler.- Returns:
- The event loop
-