Annotation Interface ThreadSafe


@Internal @Retention(SOURCE) @Documented @Target(TYPE) public @interface ThreadSafe
Documents that the annotated type is thread-safe.

When applied to an interface or abstract class, documents that implementations and subclasses must be thread-safe.

This annotation only provides information; nothing magical happens when it is present. The implementor of the annotated class/interface is responsible for ensuring it is actually thread-safe.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • caveat

      String caveat
      Default:
      ""