Class RequestsBasedTrigger


  • public final class RequestsBasedTrigger
    extends Object
    Trigger based on total requests.
    • Constructor Detail

      • RequestsBasedTrigger

        public RequestsBasedTrigger()
    • Method Detail

      • count

        public Integer count()
        Get the count property: Request Count.
        Returns:
        the count value.
      • withCount

        public RequestsBasedTrigger withCount​(Integer count)
        Set the count property: Request Count.
        Parameters:
        count - the count value to set.
        Returns:
        the RequestsBasedTrigger object itself.
      • timeInterval

        public String timeInterval()
        Get the timeInterval property: Time interval.
        Returns:
        the timeInterval value.
      • withTimeInterval

        public RequestsBasedTrigger withTimeInterval​(String timeInterval)
        Set the timeInterval property: Time interval.
        Parameters:
        timeInterval - the timeInterval value to set.
        Returns:
        the RequestsBasedTrigger object itself.
      • validate

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