Interface EventLoopVirtualThreadScheduler

All Superinterfaces:
Executor

@Internal public sealed interface EventLoopVirtualThreadScheduler extends 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
Author:
Jonas Konrad
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull io.netty.util.AttributeMap
    Get a shared AttributeMap for this scheduler.
    @NonNull io.netty.util.concurrent.EventExecutor
    Get the event loop that runs on this scheduler.

    Methods inherited from interface java.util.concurrent.Executor

    execute
  • Method Details

    • attributeMap

      @NonNull @NonNull io.netty.util.AttributeMap attributeMap()
      Get a shared AttributeMap for 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