|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={CONSTRUCTOR,METHOD,TYPE}) public @interface OnlySynchronizedField
An annotation used to designate methods that are only allowed to run if they own the monitor of the field specified by class and field name.
Required Element Summary | |
---|---|
java.lang.Class |
fieldClass
The class that contains the field whose monitor the thread has to own. |
java.lang.String |
fieldName
The name of the field whose monitor the thread has to own. |
Element Detail |
---|
public abstract java.lang.Class fieldClass
public abstract java.lang.String fieldName
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |