Annotation Interface Zone


@Target({}) @Retention(RUNTIME) public @interface Zone
Describes a distribution zone.
  • Element Details

    • value

      String value
      The name of the zone. If it's empty, the name of the class annotated with this annotation will be used.

      The name is an SQL identifier expression, read the same way CREATE ZONE reads it: an unquoted name is folded to upper case, a double-quoted name is taken literally. A name that is not a valid SQL identifier is rejected.

      Returns:
      The name of the zone.
    • storageProfiles

      String storageProfiles
      Storage profiles.
      Returns:
      Storage profiles.
    • partitions

      int partitions
      Number of partitions.
      Returns:
      Number of partitions.
      Default:
      -1
    • replicas

      int replicas
      Number of replicas.
      Returns:
      Number of replicas.
      Default:
      -1
    • quorumSize

      int quorumSize
      Quorum size.
      Returns:
      Quorum size.
      Default:
      -1
    • distributionAlgorithm

      String distributionAlgorithm
      Distribution algorithm.
      Returns:
      Distribution algorithm.
      Default:
      ""
    • dataNodesAutoAdjust

      @Deprecated int dataNodesAutoAdjust
      Deprecated.
      Deprecated, should not be used anymore. Timeout in seconds between node added or node left topology event itself and data nodes switch.
      Returns:
      Timeout.
      Default:
      -1
    • dataNodesAutoAdjustScaleUp

      int dataNodesAutoAdjustScaleUp
      Timeout in seconds between node added topology event itself and data nodes switch.
      Returns:
      Timeout.
      Default:
      -1
    • dataNodesAutoAdjustScaleDown

      int dataNodesAutoAdjustScaleDown
      Timeout in seconds between node left topology event itself and data nodes switch.
      Returns:
      Timeout.
      Default:
      -1
    • filter

      String filter
      Nodes filter.
      Returns:
      Nodes filter.
      Default:
      ""
    • consistencyMode

      String consistencyMode
      Consistency mode.
      Returns:
      Consistency mode.
      Default:
      ""