Class PathThresholdPredicate

java.lang.Object
com.helixframework.okhttp.sla.PathThresholdPredicate
All Implemented Interfaces:
BiPredicate<okhttp3.Request,Duration>

public class PathThresholdPredicate extends Object implements BiPredicate<okhttp3.Request,Duration>
Predicate that determines if the supplied request poth matches and the supplied duration surpasses the request SLA threshold.
  • Constructor Details

    • PathThresholdPredicate

      public PathThresholdPredicate()
      Creates a new instance of PathThresholdPredicate that matches all paths and sets an SLA threshold of 5 seconds.
    • PathThresholdPredicate

      public PathThresholdPredicate(Map<Pattern,Duration> slas)
      Creates a new instance of PathThresholdPredicate with the supplied path patterns and SLAs.
      Parameters:
      slas - slas
  • Method Details