Annotation Type GuardedBy

public @interface GuardedBy

Copyright (c) 2005 Brian Goetz and Tim Peierls.
Released under the Creative Commons Attribution License
Official home:
Adopted from Java Concurrency in Practice.

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.

See Also:
ThreadSafe, NotThreadSafe, Immutable

Required Element Summary
 String value

Element Detail


public abstract String value

Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.