Annotation Interface ShouldPin


@Retention(RUNTIME) @Target({METHOD,TYPE}) @Inherited @Deprecated(since="3.31", forRemoval=true) public @interface ShouldPin
Deprecated, for removal: This API element is subject to removal in a future version.
use ShouldPin instead
Indicates that the method or class can pin. At most can be set to indicate the maximum number of events. If, during the execution of the test, a virtual thread does not pin the carrier thread, or pins it more than the given atMost value, the test fails.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Element Details

    • atMost

      int atMost
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default:
      2147483647