Package io.quarkus.test.junit5.virtual
Annotation Interface VirtualThreadUnit
@Target(TYPE)
@Retention(RUNTIME)
@ExtendWith(VirtualThreadExtension.class)
public @interface VirtualThreadUnit
Extends the test case to detect pinned carrier thread.
Implementation notes: current implementation uses JFR under the hood, with two consequences:
This behaviour is not part of API and may change in future version.
Implementation notes: current implementation uses JFR under the hood, with two consequences:
- This test won’t work on JVM without JFR support, e.g. OpenJ9.
- Each test that uses this annotation is several seconds longer than versions without it.
This behaviour is not part of API and may change in future version.