javaVolatileField

The <javaVolatileField> element provides a flag within the FieldModifiersopt that declares the fields that are introduced by the declaration can be declared volatile.

Description

The volatile fields are special fields that are used for communicating a state between threads. Possible alternative definitions of the FieldModifier declaration are the <javaStaticField>, <javaTransientField>, and <javaFinalField> elements. The <javaSynchronizedMethod> element has the following predefined attributes: name ="volatile" and value ="volatile"..

Example

Click on the following link to open the Java API topic type example in
<javaField id="java.lang.Float">
   <apiName>POSITIVE_INFINITY</apiName>
   <shortdesc> </shortdesc>
   <javaFieldDetail>
      <javaFieldDef>
         <javaFinalField/>
         <javaStaticField/>
         <javaVolatileField/>
         <javaFieldAccess value="protected"/>
      </javaFieldDef>
   </javaFieldDetail>
   <related-links>
      <link href="../constant-values.html#ATTRIBUTE_NODE" format="html" scope=”external”>
           <linktext>Constant Field Values</linktext> 
      </link>
    </related-links>
</javaField>

Processing Expectations

Contained by

javaFieldDef

Content model

no content

Inheritance

topic/state reference/state apiRef/apiQualifier apiValue/apiQualifier