Class FaultInjectionServerErrorResult

java.lang.Object
com.azure.cosmos.test.faultinjection.FaultInjectionServerErrorResult
All Implemented Interfaces:
IFaultInjectionResult

public final class FaultInjectionServerErrorResult extends Object implements IFaultInjectionResult
Fault injection server error result.
  • Method Details

    • getServerErrorType

      public FaultInjectionServerErrorType getServerErrorType()
      Get the fault injection server error type.
      Returns:
      the FaultInjectionServerErrorType.
    • getTimes

      public Integer getTimes()
      Get the number of how many times the rule can be applied on a single operation.
      Returns:
      the times.
    • getDelay

      public Duration getDelay()
      Get the injected delay for the server error. Will be required for SERVER_RESPONSE_DELAY and SERVER_CONNECTION_DELAY, will be ignored for others.
      Returns:
      the injected delay.
    • toString

      public String toString()
      Overrides:
      toString in class Object