Annotation Type State

  • @Inherited@Target(value=TYPE)@Retention(value=RUNTIME)public @interface State

    Marks the state object.

    State objects naturally encapsulate the state on which benchmark is working on. The Scope of state object defines to which extent it is shared among the worker threads.

    State objects are usually injected into Benchmark methods as arguments, and JMH takes care of their instantiation and sharing. State objects may also be injected into Setup and TearDown methods of other State objects to get the staged initialization. In that case, the dependency graph between the State-s should be directed acyclic graph.

    State objects may be inherited: you can place State on a super class and use subclasses as states.

    • Required Element Summary

      Required Elements 
      Modifier and TypeRequired Element and Description
      State scope.
    • Element Detail

      • value

        public abstract Scope value
        State scope.
        state scope
        See Also:

Copyright © 2012-2015 Oracle. All Rights Reserved.

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