Annotation Type SingleThreadAccess


  • @Target({FIELD,METHOD})
    @Retention(SOURCE)
    public @interface SingleThreadAccess
    Denotes that the annotated element of a class that's meant for multi-threaded usage is accessed only by single thread and thus doesn't need to be guarded via synchronization or similar.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      Describes the thread accessing the annotated element.
    • Element Detail

      • value

        String value
        Describes the thread accessing the annotated element.