Annotation Type Timeout


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

    Timeout annotation allows to set the default timeout parameters for the benchmark.

    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.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int time  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      TimeUnit timeUnit  
    • Element Detail

      • time

        int time
        Returns:
        Timeout for each iteration
      • timeUnit

        TimeUnit timeUnit
        Returns:
        Time unit for timeout duration
        Default:
        java.util.concurrent.TimeUnit.SECONDS