Annotation Interface HugeAtomicArray


@Target(TYPE) @Retention(CLASS) public @interface HugeAtomicArray
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The interface which is expected to extend PageCreator.
    The functional interface which takes the valueType and returns the valueType.
    The type which is stored in the generated HugeAtomicArray.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The page shift defines the page size used in the generated HugeAtomicArray.
  • Element Details

    • valueType

      Class<?> valueType
      The type which is stored in the generated HugeAtomicArray.
    • valueOperatorInterface

      Class<?> valueOperatorInterface
      The functional interface which takes the valueType and returns the valueType. The method is expected to be named "apply".
    • pageCreatorInterface

      Class<?> pageCreatorInterface
      The interface which is expected to extend PageCreator.
    • pageShift

      int pageShift
      The page shift defines the page size used in the generated HugeAtomicArray. The default value of 14 leads so 2^14 = 16384 elements per page (array).
      Default:
      14