Annotation Type Threads


  • @Inherited
    @Target({METHOD,TYPE})
    @Retention(RUNTIME)
    public @interface Threads

    Threads annotation provides the default number of threads to run.

    This annotation may be put at Benchmark method to have effect on that method only, or at the enclosing class instance to have the effect over all Benchmark methods in the class. This annotation may be overridden with the runtime options.

    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static int MAX
      The magic value for MAX threads.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int value  
    • Field Detail

      • MAX

        static final int MAX
        The magic value for MAX threads. This means Runtime.getRuntime().availableProcessors() threads.
    • Element Detail

      • value

        int value
        Returns:
        Number of threads; use Threads.MAX to run with all available threads.