@Target(value=METHOD) @Retention(value=SOURCE) public @interface Locked
Lock
.
For non-static methods, a field named $lock
is used, and for static methods,
$LOCK
is used. These will be generated if needed and if they aren't already present.
Because Locked
uses a different type of lock from Locked.Read
and Locked.Write
, using both in
the same class using the default names will result in a compile time error.
Complete documentation is found at the project lombok features page for @Locked.
public abstract String value
Copyright © 2024. All rights reserved.