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
    Describes the thread accessing the annotated element.
  • Element Details

    • value

      String value
      Describes the thread accessing the annotated element.