@Target(value={FIELD,METHOD}) @Retention(value=SOURCE) public @interface GuardedBy
An annotation that describes the monitor protecting the annotated field or method. For example, @GuardedBy("this")
specifies that the lock is the object in whose class the field or method is defined, while @GuardedBy("lock")
specifies that the method or field is guarded by a lock held in the "lock" field.
ThreadSafe
,
NotThreadSafe
,
Immutable
public abstract String value
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.