Class VirtualThreadsSecondPreviewNotes

java.lang.Object
net.jrodolfo.java_evolution.java20.VirtualThreadsSecondPreviewNotes

public class VirtualThreadsSecondPreviewNotes extends Object
Explains virtual threads as a Java 20 second preview feature.

Java 20 continued the work started in Java 19: make blocking thread-per-task code scale to very high concurrency without forcing developers into callback chains or reactive pipelines for every workload.

Virtual threads became final in Java 21. This package keeps Java 20 as notes because the runnable preview-origin example already appears in Java 19 and the final API is demonstrated in Java 21.

  • Constructor Details

    • VirtualThreadsSecondPreviewNotes

      public VirtualThreadsSecondPreviewNotes()
  • Method Details

    • purpose

      public String purpose()
      Explains the problem virtual threads address.
      Returns:
      a short explanation
    • finalRelease

      public String finalRelease()
      Names the release where virtual threads became final.
      Returns:
      a short release note