Class ConnectionMonitorSuccessThreshold


  • public final class ConnectionMonitorSuccessThreshold
    extends Object
    Describes the threshold for declaring a test successful.
    • Constructor Detail

      • ConnectionMonitorSuccessThreshold

        public ConnectionMonitorSuccessThreshold()
    • Method Detail

      • checksFailedPercent

        public Integer checksFailedPercent()
        Get the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.
        Returns:
        the checksFailedPercent value.
      • withChecksFailedPercent

        public ConnectionMonitorSuccessThreshold withChecksFailedPercent​(Integer checksFailedPercent)
        Set the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.
        Parameters:
        checksFailedPercent - the checksFailedPercent value to set.
        Returns:
        the ConnectionMonitorSuccessThreshold object itself.
      • roundTripTimeMs

        public Float roundTripTimeMs()
        Get the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
        Returns:
        the roundTripTimeMs value.
      • withRoundTripTimeMs

        public ConnectionMonitorSuccessThreshold withRoundTripTimeMs​(Float roundTripTimeMs)
        Set the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
        Parameters:
        roundTripTimeMs - the roundTripTimeMs value to set.
        Returns:
        the ConnectionMonitorSuccessThreshold object itself.
      • validate

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