Top Description Methods
javax.annotation.concurrent

public @Interface GuardedBy

extends Annotation
Annotations
@Target:FIELD, METHOD
@Retention:CLASS
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

The field or method to which this annotation is applied can only be accessed when holding a particular lock, which may be a built-in (synchronization) lock, or may be an explicit java.util.concurrent.locks.Lock.

The argument determines which lock guards the annotated field or method:

Method Summary

Modifier and TypeMethod and Description
public String
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()