org.apache.http.annotation
Annotation Type GuardedBy


@Documented
@Target(value={FIELD,METHOD})
@Retention(value=CLASS)
public @interface GuardedBy

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.Lock. The argument determines which lock guards the annotated field or method: