Enum Class MemoryOrder

java.lang.Object
java.lang.Enum<MemoryOrder>
io.quarkus.gizmo2.MemoryOrder
All Implemented Interfaces:
Serializable, Comparable<MemoryOrder>, Constable

public enum MemoryOrder extends Enum<MemoryOrder>
The possible memory order modes.
  • Enum Constant Details

    • AsDeclared

      public static final MemoryOrder AsDeclared
      Use the declared mode of the variable. For fields, this could be Plain or Volatile. For all other types, this is Plain.
    • Plain

      public static final MemoryOrder Plain
      Access using "plain" semantics. All assignables support this type of access.
    • Opaque

      public static final MemoryOrder Opaque
      Access using "opaque" semantics.
    • Acquire

      public static final MemoryOrder Acquire
      Access using "acquire" semantics.
    • Release

      public static final MemoryOrder Release
      Access using "release" semantics.
    • Volatile

      public static final MemoryOrder Volatile
      Access using "volatile" semantics.
  • Method Details

    • values

      public static MemoryOrder[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MemoryOrder valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • validForReads

      public boolean validForReads()
      Returns true if this mode may be used for read operations, or false if it cannot.
      Returns:
      true if this mode may be used for read operations, or false if it cannot
    • validForWrites

      public boolean validForWrites()
      Returns true if this mode may be used for write operations, or false if it cannot.
      Returns:
      true if this mode may be used for write operations, or false if it cannot