org.openjdk.jmh.annotations

Annotation Type Timeout



  • @Target(value={METHOD,TYPE})@Retention(value=RUNTIME)@Inheritedpublic @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 TypeRequired Element and Description
      inttime 
    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional Element and Description
      TimeUnittimeUnit 
    • Element Detail

      • time

        public abstract int time
        Returns:
        Timeout for each iteration
      • timeUnit

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

Copyright © 2012-2015 Oracle. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14