Class VirtualThreadTaskExecutor

java.lang.Object
com.netflix.graphql.dgs.internal.VirtualThreadTaskExecutor
All Implemented Interfaces:
Executor, org.springframework.core.task.AsyncTaskExecutor, org.springframework.core.task.TaskExecutor

public class VirtualThreadTaskExecutor extends Object implements org.springframework.core.task.AsyncTaskExecutor
Unimplemented version of the VirtualThreadTaskExecutor just for reachability. The actual implementation is in the java21 source folder, using the multi-release JAR feature.
  • Field Summary

    Fields inherited from interface org.springframework.core.task.AsyncTaskExecutor

    TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE
  • Constructor Summary

    Constructors
    Constructor
    Description
    VirtualThreadTaskExecutor(io.micrometer.context.ContextSnapshotFactory contextSnapshotFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(@NotNull Runnable task)
     
    void
    execute(@NotNull Runnable task, long startTimeout)
    Deprecated.
    @NotNull Future<?>
    submit(@NotNull Runnable task)
     
    <T> @NotNull Future<T>
    submit(@NotNull Callable<T> task)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.task.AsyncTaskExecutor

    submitCompletable, submitCompletable
  • Constructor Details

    • VirtualThreadTaskExecutor

      public VirtualThreadTaskExecutor(io.micrometer.context.ContextSnapshotFactory contextSnapshotFactory)
  • Method Details

    • execute

      public void execute(@NotNull @NotNull Runnable task)
      Specified by:
      execute in interface Executor
      Specified by:
      execute in interface org.springframework.core.task.TaskExecutor
    • execute

      @Deprecated public void execute(@NotNull @NotNull Runnable task, long startTimeout)
      Deprecated.
      Specified by:
      execute in interface org.springframework.core.task.AsyncTaskExecutor
    • submit

      @NotNull public @NotNull Future<?> submit(@NotNull @NotNull Runnable task)
      Specified by:
      submit in interface org.springframework.core.task.AsyncTaskExecutor
    • submit

      @NotNull public <T> @NotNull Future<T> submit(@NotNull @NotNull Callable<T> task)
      Specified by:
      submit in interface org.springframework.core.task.AsyncTaskExecutor