Annotation Type Locked.Write

Enclosing class:
Locked

@Target(METHOD) @Retention(SOURCE) public static @interface Locked.Write
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional: specify the name of a different field to lock on.
  • Element Details

    • value

      String value
      Optional: specify the name of a different field to lock on. It is a compile time error if this field doesn't already exist (the fields are automatically generated only if you don't specify a specific name).
      Returns:
      Name of the field to lock on (blank = generate one).
      Default:
      ""