Class StatusCodes

    • Constructor Summary

      Constructors 
      Constructor Description
      StatusCodes()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      StatusCodes clone()  
      boolean equals​(Object obj)  
      Integer getStatus2xx()
      The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
      Integer getStatus3xx()
      The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
      Integer getStatus4xx()
      The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
      Integer getStatus5xx()
      The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
      int hashCode()  
      void setStatus2xx​(Integer status2xx)
      The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
      void setStatus3xx​(Integer status3xx)
      The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
      void setStatus4xx​(Integer status4xx)
      The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
      void setStatus5xx​(Integer status5xx)
      The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
      String toString()
      Returns a string representation of this object; useful for testing and debugging.
      StatusCodes withStatus2xx​(Integer status2xx)
      The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
      StatusCodes withStatus3xx​(Integer status3xx)
      The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
      StatusCodes withStatus4xx​(Integer status4xx)
      The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
      StatusCodes withStatus5xx​(Integer status5xx)
      The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
    • Constructor Detail

      • StatusCodes

        public StatusCodes()
    • Method Detail

      • setStatus2xx

        public void setStatus2xx​(Integer status2xx)

        The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.

        Parameters:
        status2xx - The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
      • getStatus2xx

        public Integer getStatus2xx()

        The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.

        Returns:
        The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
      • withStatus2xx

        public StatusCodes withStatus2xx​(Integer status2xx)

        The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.

        Parameters:
        status2xx - The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStatus3xx

        public void setStatus3xx​(Integer status3xx)

        The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.

        Parameters:
        status3xx - The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
      • getStatus3xx

        public Integer getStatus3xx()

        The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.

        Returns:
        The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
      • withStatus3xx

        public StatusCodes withStatus3xx​(Integer status3xx)

        The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.

        Parameters:
        status3xx - The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStatus4xx

        public void setStatus4xx​(Integer status4xx)

        The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.

        Parameters:
        status4xx - The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
      • getStatus4xx

        public Integer getStatus4xx()

        The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.

        Returns:
        The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
      • withStatus4xx

        public StatusCodes withStatus4xx​(Integer status4xx)

        The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.

        Parameters:
        status4xx - The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStatus5xx

        public void setStatus5xx​(Integer status5xx)

        The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.

        Parameters:
        status5xx - The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
      • getStatus5xx

        public Integer getStatus5xx()

        The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.

        Returns:
        The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
      • withStatus5xx

        public StatusCodes withStatus5xx​(Integer status5xx)

        The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.

        Parameters:
        status5xx - The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object