Annotation Type GuardedBy


  • @Documented
    @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface GuardedBy
    The field or method that this annotation is attached to can only be accessed when holding a particular lock.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value  
    • Element Detail

      • value

        java.lang.String value