Class ReadScaleCapability


  • public final class ReadScaleCapability
    extends Object
    The read scale capability.
    • Constructor Detail

      • ReadScaleCapability

        public ReadScaleCapability()
    • Method Detail

      • maxNumberOfReplicas

        public Integer maxNumberOfReplicas()
        Get the maxNumberOfReplicas property: The maximum number of read scale replicas.
        Returns:
        the maxNumberOfReplicas value.
      • status

        public CapabilityStatus status()
        Get the status property: The status of the capability.
        Returns:
        the status value.
      • reason

        public String reason()
        Get the reason property: The reason for the capability not being available.
        Returns:
        the reason value.
      • withReason

        public ReadScaleCapability withReason​(String reason)
        Set the reason property: The reason for the capability not being available.
        Parameters:
        reason - the reason value to set.
        Returns:
        the ReadScaleCapability object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.