Class McpSchedulers

java.lang.Object
eu.mrapik.minecraftservermcp.internal.McpSchedulers

public final class McpSchedulers extends Object
Shared Reactor Scheduler for blocking file I/O used by filesystem tools, so work stays off the game thread without unbounded thread creation.

Uses Executors.newVirtualThreadPerTaskExecutor() when the JVM supports virtual threads; otherwise falls back to Reactor's Schedulers.boundedElastic().

  • Method Details

    • blockingIo

      public static reactor.core.scheduler.Scheduler blockingIo()
      Shared scheduler for blocking filesystem operations off the main thread.
      Returns:
      shared scheduler for blocking filesystem work