ReadOnly (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.namenode.ha, annotation type: ReadOnly

Package org.apache.hadoop.hdfs.server.namenode.ha

# Annotation Interface ReadOnly

@Inherited @Retention(RUNTIME) @Target(METHOD) @Private @Evolving public @interface ReadOnly
Marker interface used to annotate methods that are readonly.

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `boolean`
  `activeOnly`
  `boolean`
  `atimeAffected`
  `boolean`
  `isCoordinated`

- ## Element Details

  - ### atimeAffected

    boolean atimeAffected
    Returns:
      if true, the annotated method may update the last accessed time while performing its read, if access time is enabled.
    Default:
      false

  - ### activeOnly

    boolean activeOnly
    Returns:
      if true, the target method should only be invoked on the active namenode. This applies to operations that need to access information that is only available on the active namenode.
    Default:
      false

  - ### isCoordinated

    boolean isCoordinated
    Returns:
      if true, when processing the rpc call of the target method, the server side will wait if server state id is behind client (msync). If false, the method will be processed regardless of server side state.
    Default:
      false